3 ms·
I believe in them. But unit tests are useless around useless humans. And there’s lots of those. A fine example is that time I wrote a test suite for a domain sp
by baz00 3y ago
I believe in them. But unit tests are useless around useless humans. And there’s lots of those. A fine example is that time I wrote a test suite for a domain specific language parser. Someone wanted to break the language so they deleted the tests. New stuff was added without tests.
They confidently broke everything historically and looking forward. Then blamed it on me because it was my test suite that didn’t catch it. The language should not have been broken.
Everything only works if you understand what you are doing so every argument should be posed as both sides.
- r2_pilot 3y agoIn my opinion this is because we don't teach Chesterton's Fence early enough (or often enough) to internalize it at a societal level.
- Steltek 3y agoWhenever I read, "when my code breaks the tests, I delete the tests", this is what I picture in my head. Their code changed behavior and good unit tests catch change in behavior. Someone somewhere is probably depending on that behavior.