Take what you learned and build it.

A course is for reading in order and taking in; a project is for building one thing all the way through. Rather than handing you the requirements and walking off, each one carries the steps, a worked answer and the places people get stuck.

How to progress in Programming languages

  1. Courses to take first Python for Beginners → Java for Beginners → Rust for Beginners 9 courses in this field in total
  2. Beginner (2) Start here: 🔎 Pull just the lines you need out of an access log
  3. Intermediate (3) Up next: 🛡️ Take in an API response with both types and a runtime check
  4. Advanced (10) Up next: 🦀 Stop fighting the borrow checker and restructure until it passes

15 in total · Beginner → intermediate → advanced

Intermediate 💴

Fix the sums that come out one yen off, with integers and Decimal

A price with tax comes out one yen too high; a split bill doesn't add up to the bill. You check float error, round()'s round-half-to-even, rounding rules and leftover yen one at a time with real numbers, then write a largest-remainder function whose shares always add up, and pin it down with tests.

PythonDecimalRoundingunittest
Intermediate 🚦

Make "loading, but also an error" impossible to build

State held as isLoading, isError and data can be built 8 ways, and only 4 of them mean anything. You reproduce how you drift into an impossible state, shut it out with a discriminated union and never, gather every change into a reducer, and pin it down with a transition-table test.

TypeScriptDiscriminated unionsneverreducer
Advanced 🧵

Stop a data race at compile time

Why can Rust not even express code that another language would happily run with numbers that do not add up? You read what Send is saying, get it compiling, and measure three ways of writing it.

RustConcurrencySend/SyncArc/Mutex
Advanced 📉

Cut memory, after measuring it

You print the peak with tracemalloc and cut it in two directions: making one item smaller (__slots__) and holding fewer at once (generators). The second one is what pays.

Pythontracemalloc__slots__Generators
Advanced 🔒

Make a class that cannot hold a broken state

Are your rules only enforced inside __init__? Then nothing stops anyone afterward. You check on every assignment with a descriptor, and work out derived values rather than holding them.

PythonDescriptors__set_name__Invariants
Advanced 🧭

Design an error type the caller can branch on

With Box<dyn Error> all you learn is that it failed. You write the possible failures out as an enum, so that adding one makes the compiler stop every caller. Up to where thiserror ends and anyhow begins.

RustError designthiserroranyhow
Advanced 🔑

Fix the keys you can no longer get back out of a HashMap

You look up a key you know you put in, and get null back. There are four causes, and all of them compile. You measure how entries become unreachable, sort out what a record fixes and what it doesn't, and finish by making the keys immutable.

Javaequals/hashCodeHashMaprecord
Advanced 🐹

Count your runaway goroutines, then stop them

A goroutine you start with go doesn't end until someone stops it. You count 100 of them lingering after a timeout gives up, find the line where they're stuck, stop them with channels and context, and pin down "no leaks" with a test.

Gogoroutinecontextpprof