3 ms·
I absolutely agree that TDD does not guarantee well-thought-out code. (If you find something that does, let me know.) However, for some people, I do think it
by michael_dorfman 17y ago
I absolutely agree that TDD does not guarantee well-thought-out code. (If you find something that does, let me know.)
However, for some people, I do think it does give them a nudge in the right direction. Over the years, I've been amazed at the quantity of code I've seen written by programmers who had only the vaguest notion of what the code they were writing was supposed to do. Any ritual, no matter how silly, that helps the novice (or lazy) coder to stop and think before coding is ok by me.
But, as I said, there's a long way from that to insisting on TDD as "the one true way".