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 reading

Chapters

  1. 01
    Bundle the updates that have to happen together

    Nobody got it wrong. Everyone carefully copied the code closest to hand.

  2. 02
    Make 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.

  3. 03
    Don'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.