4 ms·
While I enjoyed the article, I think the author, like many others, misses or misrepresents what the purpose of TDD is. He argues that doing TDD is not an effec
by lyudmil 17y ago
While I enjoyed the article, I think the author, like many others, misses or misrepresents what the purpose of TDD is.
He argues that doing TDD is not an effective test strategy and he seems to have a valid point. However, TDD is not about testing, but about design. TDD's claim is that it will guide you towards a better design by allowing you to explore design possibilities, forcing you to think about the responsibilities and collaborations involved. Catching bugs is one of many things you get as a bonus, but it is a bit of an afterthought.
This is a common misconception, but I think it ought to be pointed out.
- kevinpet 17y agoI don't think the author has any such confusion. He talks about testing to emphasize that he is strongly in favor of testing, but he found TDD as a development model lacking. He may be a bit slopping in using "the testing world" when he means "advocates of TDD", but his specific claim is that TDD makes it harder to explore design possibilities than the alternative of what he calls exploratory coding.