← Everyone's take

TAKES · Hugo answers

What do we do about the project in Nebraska?

What do we do about the project in Nebraska?“Wrap it in tests. Then we'll know when Nebraska moves.”Hugo Demir, The Perfectionist

💡 WHY HUGO IS RIGHT

A dependency outside the team's control can change behavior with any upgrade or new maintainer. Characterization tests on the exact functions the product uses, edge cases and encodings included, turn silent drift into a failing build and document what a future replacement must do.

✅ RIGHT WHEN

The product relies on subtle behavior of a library it upgrades regularly.

🚩 TOO FAR WHEN

The test suite for the dependency is larger than the dependency.

See all 12Hugo's profile

After xkcd 2347.