Data types I
Advance your knowledge of data types and declaration patterns with comprehensive set of exercises. Go trough interactive quizzes, and solve downloadable tasks to figure out how everything works together. Learn to see differences between dicts, structs, tuples, arrays. Master data declarations, destructuring, spreads, etc. Warning: your perception of the topic will change forever!
4 exercises with solutions and explanations.
Before you start
1. We believe that a learning environment should be as realistic as possible. There are no Paste-n-Run sandboxes for coding tasks at Paqmind. You should use your own editor to write code and your own machine to run it – like a real programmer does.
2. Make sure you know the required theory, at least in the first approximation. Terms from the Curriculum should sound familiar for you. Refer to the Theory list below and always search for more. Start tomorrow (or next week) but start prepared.
3. Don't expect to pass the tutorial in one sitting. It's not a usual Easy-Level stuff made to massage your ego. We tried to make each exercise challenging, sometimes even discomfortable, yet enlightening. If you're here just to verify your knowledge, it may take a few days. But if you're new to the topic – it may easily take two weeks or more.
Refer to the How-to page for more information.
Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident. Data structures, not algorithms, are central to programming. – Rob Pike
From the author
Data type (or just type) is a form in which you represent business data in a program. Any real-world data can be represented in multiple ways and the choice should not be random. In this tutorial we won't dive deep into Type Theory (we'd probably need TypeScript for that) and concentrate on data, its forms and representations instead (hence the title). Every concept we cover here is super important and we suggest you to give it a go, especially if you don't have a CS degree. Let's learn by practice!