3 ms·
As the saying goes, crap in, crap out. It's just as easy to write crappy unit tests as it is crappy code.
by Cacti 10y ago
As the saying goes, crap in, crap out. It's just as easy to write crappy unit tests as it is crappy code.
- tmm 10y agoOr, as W. E. Deming wrote: "You cannot inspect quality into a product."
- finishingmove 10y agoAnd it's extremely hard to write unit tests for crappy code.
- Cacti 10y agoExtremely hard to write _good_ unit tests for crappy code.
- danudey 10y agoAfter three years of working on some software (basically some fancy shell scripting but in Python), when the project had grown dramatically beyond its original scope through a host of hacks and bolted-on features, I remembered that the software had unit tests and ran them. Surprisingly, all the unit tests passed, and my first thought when I saw that was "Man, I bet these unit tests are awful."