4 ms·
The last sentence of the above article is actually agreeing what dhh wanted to say :) >>So pay attention. Think about design. And if TDD is pushing you in a di
by tszming 12y ago
The last sentence of the above article is actually agreeing what dhh wanted to say :)
>>So pay attention. Think about design. And if TDD is pushing you in a direction that makes your code worse, stop. Take a walk. Talk to a colleague. And look for a better way.
- jdlshore 12y agoAuthor here. I agree with DHH that people have created bad designs in the name of testability. I disagree with his conclusion that TDD should be thrown out, or that slow end-to-end tests are an adequate replacement. By "stop," I meant, "stop programming for a bit and think about a better way to design," not "stop using TDD." (I might agree that TDD is a bad choice for typical Rails apps, though. That's a pretty narrow case, and it says more about Rails than TDD.)