2 ms·
Unit testing (done TDD style) does not slow you down, it speeds you up. I do a lot of unit testing myself, but I know many programmers for whom unit testing do
by lacker 17y ago
Unit testing (done TDD style) does not slow you down, it speeds you up.
I do a lot of unit testing myself, but I know many programmers for whom unit testing does slow them down. Some people get so caught up in unit testing and refactoring for better testability that they either get nothing done. And some people do it wrong, test for extremely specific behavior, and their code becomes impossible to change. I have also known people that try TDD but end up failing to write code that they know how to write but they don't know how to test. It is not a panacea. You have to "do it right".
Contrast that with something like source control. It is hard to waste tons of time on source control that you could have saved if you just didn't use source control. It is fairly easy for even the most incompetent programmers to use source control.