4 ms·
> The biggest benefit of TDD is that it removes the fear of breaking your code. This isn't true at all. TDD forces you to write unit testable code, which will
by greencar 6y ago
> The biggest benefit of TDD is that it removes the fear of breaking your code.
This isn't true at all. TDD forces you to write unit testable code, which will have lower cyclomatic complexity, looser coupling, and generally be easier to maintain.
Writing tests second always leads to a suite that is more expensive to maintain than provided value.
And unit tests suck for catching bugs anyway, it's really about writing better code up front, which will have lower bugs and higher confidence by definition