← Everyone's take

TAKES · Jo answers

When should we add tests?

When should we add tests?“After the second time it breaks the same way.”Jo Ramirez, The Cowboy

💡 WHY JO IS RIGHT

Up-front tests guess at failure modes and often protect behavior that later gets deleted. A bug that recurs is proven, likely to return, and points exactly at the fragile spot. Testing it then keeps the suite small and cheap to rewrite when young code pivots.

✅ RIGHT WHEN

The code changes weekly and failures are cheap, visible and reversible.

🚩 TOO FAR WHEN

The second identical break was a double charge, and the customer was counting.

See all 12Jo's profile