Learning a general-purpose language
Beginner
Theory
Quick Starts, Tutorials, Walk-throughs, User Guides, Beginner Books, etc
-
Basic data types and operators
-
Basic data structures
-
Variable definition
-
Function definition
-
Loops
-
Branching
-
Some Std library
- Data manipulation
- File
- OS
- Network
- Datetime
- Math
- Extended data structures
Grok the lexicon, sementics and syntax!
Many languages have different ways of doing the same thing; many even do the same thing the same way but under a different name!
Practical
-
Very simple (usually single file) problems like:
- Fibonacci, Primes Sieve, etc
- Pull data from a public api and store in a file
- Read data from file into language-specific data structure
- Convert and write data into json/csv file as original backup
- Store data into a database
- Create web server routes that GET and POST a row of data in db
-
Syntactically challenging yet still easy to solve problems like:
- A simple game (guess the number, hangman etc)
- A simple management system (orders, employees, library etc)
- A simple data processing pipeline (calculate statistics from a transaction sheet, etc)
- A simple web scraper
- A simple to-do app
- A simple chat app
Yes, we must keep in mind that the solutions need to be SIMPLE, else we miss the forest for the trees.
Intermediate
Theory
Documentations, User Manuals, API References, More Books etc
- Simple Project Structure (with tooling)
- Linters
- Test Runners
- Formatters
- Package Managers
- Concurrent/Parallel (Async) Model
- Exception Handling
- Modules/Packages Handling
- Higher Level Concepts (Inheritance, Protocols, Dispatchers, Composition, Type classes etc)
- Scope/Context Model
- Common Gotchas (Haskell string, JS falsy, Python GIL, etc)
- Simple Macros (if they exist)
- Pattern Matching (if it exists)
- Regular Expression Support
- Memory Allocation/Deallocation (if required)
- Value/Reference/Address Passing Support
- More from std library
- Popular packages from public repository
- Best practices, conventions
Practical
- 6 small projects
- 3 medium projects
- 1 large project
- Contribute to open source projects
Expert
Everything, everywhere but not all at once
- Idiomatic Code
- Complex Project Structure (with embedded DSLs, advanced config, CI/CD, container images etc)
- Development/Testing/Deployment workflows
- Foreign Function Interface
- Memory Management Models (with different GC mechanisms)
- Performance Gotchas (tail-call recursion, lazy evaluation, etc)
- Complex Macros and Language extension
- When to overrule best practices and conventions
Ideally, should spend as little time as possible in Beginner phase. An experience programmer can pick up the basics in less than a week.
Spend most of the time in Intermediate phase, working on different projects. This is where you’ll learn much of what the language has to offer.
There will be a stark contrast to moving from beginner to intermediate, as you change the scale of your projects. The same cannot be said for intermediate to expert. It could take years, and it is a very gradual process.