8 ms·
No. I have always felt that TDD gives a false feeling of safety and satisfaction, and that it is mostly a waste of time that could be better spend optimizing an
by unixsheikh 7y ago
No. I have always felt that TDD gives a false feeling of safety and satisfaction, and that it is mostly a waste of time that could be better spend optimizing and refactoring.
Testing simple code is simple and therefore pretty much useless. Testing complicated code is complicated and therefore more likely to fail by making to few or to many assumptions in the test, or completely screwing up the test code itself.
- rocgf 7y agoA couple of takeaways from your post: - knowing your code does what you expect is a _false_ sense of safety - if something is simple, it is useless - if something is complicated, it is useless
- unixsheikh 7y agoThat's the problem. You assume that because you have a couple of passed tests that you know your code. Tests are like any other code, they incur bugs at the same rate as other code, and as such can very much give a false sense of safety.