Back to Course

Senior Track

Spot the Tax

Twenty short Rails lessons. Each one shows a snippet of code that works today and walks you through what it'll cost in six months — under load, after a deploy, when the table grows. Look at the code, try to spot the tax yourself, then reveal the answer.

How to use this page. Pick any lesson and start there — the lessons don't depend on each other. Each one takes about 5 minutes: look at the code, take a moment to think about the fix, then reveal the solution and the underlying principle. The principles are the part worth remembering.

Section 1 of 4

Universal taxes

No principles, no jargon. Five pieces of code that work for the first user and bite later.

Section 2 of 4

SOLID, one card per letter

Each principle in SOLID, demonstrated through one tax that real teams have paid in production.

Section 3 of 4

Senior gotchas

Concurrency, retries, scaling, error handling, schema escape hatches. The taxes that don't fit cleanly into a SOLID slot.

Section 4 of 4

DDD in Rails

Domain-driven design ideas applied in a Rails codebase. Anemic models, primitive obsession, leaky boundaries, missing events, and broken aggregates.

These lessons aren't a curriculum, they're a collection. The same five "I do that every week" recognitions, twenty times. Working through the deck once teaches you the principles. Coming back to the deck a few months later, when the same patterns show up in a code review, is when the senior reflex actually starts to form.

← Back to Course Senior Track · Spot the Tax · 20 lessons