Before It Breaks
It isn't wrong. It works fine today. But change the requirements once and it breaks. These are the things people who got burned first now do in advance, one chapter at a time.
Start readingChapters
- 01Bundle the updates that have to happen together
Nobody got it wrong. Everyone carefully copied the code closest to hand.
- 02Make combinations that must never exist impossible to write
A rule that depends on people paying attention falls apart the moment something that can't pay attention writes the code.
- 03Don't use spread for state transitions
Types stop you from writing what shouldn't be there. They don't stop you from dragging along what already was.