The idea
For someone devoted to software correctness, Allen is surprisingly down on testing. Manual tests are the weakest guarantee, he tells Orosz; better to choose languages and designs where illegal states can’t be expressed at all, the strength of the ML family’s type systems. Where you do test, he prefers repeatable “workloads” to unit tests, and he wants validation built in from the start rather than added as late quality “gates.”
Key takeaways
- A classic workload is the Bank Test, which runs transfers against a database over and over to check its isolation guarantees.
- Allen argues that tech debt only hurts if you have to pay it back, and often you never do.
Methods the author describes
- Write down your system’s invariants and use language features that make invalid states impossible to express.
- Define repeatable workloads, such as a bank-transfer test, and run them many times to check behavior.
- Build correctness checks into development from the start instead of relying on late quality gates.
Pick one to try and we'll check in tomorrow to ask whether it worked. Your answer stays in this browser; we only count totals.
Go deeper with the original
This is our summary. The full argument, evidence and voice are in Gergely Orosz's piece.
Read the original on The Pragmatic Engineer (opens in a new tab)