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.

19 in total

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 🔄

Write async code that never stops the event loop

Writing async does not help if there is no await to yield at. You watch a heartbeat skip, then fix the difference between gather and TaskGroup and the way cancellation is handled.

PythonasyncioTaskGroupCancellation
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 💳

Build a shop with Django (part 2): orders and payment

One item in stock and two customers at the same moment: code written the ordinary way lets both through. You reproduce it on PostgreSQL, fix it, and make the payment notification safe to receive twice.

DjangoPostgreSQLTransactionsIdempotency
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
Advanced 🧨

A long name makes you an admin: catch the overflow with ASan and fix it

Pass a long name to the function that builds display names, and the is_admin field next to it gets overwritten. You pin down which byte spilled over with ASan, see why strncpy does not fix it, rebuild the API so it takes the buffer size, and lock the edges down with tests.

CAddressSanitizersnprintfEdge-case tests
Advanced 🛰️

Build a terminal 6 of 8: split it into a server and clients

Move the part that owns the PTY into a daemon. Build a length-prefixed protocol, a snapshot on attach, raw byte relay and resync for slow clients, then make the GUI a socket client. Confirm that the screen survives closing and reopening.

RustUnix socketsselectCustom protocol