TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

TDD is fun

16 pointsby hamdalabout 11 years ago

1 comment

mpweiherabout 11 years ago
Excellent riposte! Mine was going to be somewhat less polite :-)<p>Can&#x27;t stress enough that TDD is not about testing (sth. DHH, like many if not most critics gets wrong). It is about development and design. The fact that you get a pretty decent test suite out of it is a nice side effect. (Love me those side-effects, wouldn&#x27;t want to program without &#x27;em).<p>I also find that whenever I skimp, it <i>always</i> comes back to bite me. And usually it was because I hadn&#x27;t understood the problem-space well enough to write a proper test. That&#x27;s one important part of TDD for me: I have to understand the requirements well enough to actually write a test for them.<p>And the OP is also right in that Rails is a bad environment for TDD, as far as I can tell, because all the magic and auto-integration gets in the way and has to be laboriously stubbed&#x2F;mocked etc.<p>Maybe it&#x27;s time the community got over Rails. (See also Uncle Bob&#x27;s excellent architecture talk: <a href="http://www.youtube.com/watch?v=WpkDN78P884" rel="nofollow">http:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=WpkDN78P884</a> ).