Sheet 01 — Fundamentals
Fundamentals
Interactive essays you can break, each from a real production problem: the query in the loop, streaming large results, validating input at the edge, adding to legacy code.
See one legacy system mid-migration on the architecture canvas →
- The query in the loop
A list page that fetches each item’s related data with its own queries is fast with ten items on a laptop and slow with two thousand in production.
- Validate at the edge
When every endpoint has to remember its own checks, some forget and bad input ends in a 500; checking it once before the controller leaves the handler with only business rules.
- Two frameworks, one app: adding to legacy code
Add a feature inside old, coupled code and the change spreads; add it behind a seam and the old code barely moves.
- Streaming large results
An export that reads rows one at a time can still hold every row in memory; it only stays flat when each row goes straight to the file.