Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
TDD is All About Design, Tests Are a Useful By-Product

I made a comment yesterday on the altdotnet Yahoo group to the effect of:

Test Driven Development is All About Design, Tests Are a Useful By-Product

I worded it slightly differently then, but I think this sums it up better. And coincidentally, Oren just blogged a very similar sentiment.

Whatever you may think, TDD is certainly not about the tests.

  • TDD is a mindset
  • TDD is an approach to designing and writing better software
  • TDD it is a method of driving out good design through *using* your own classes and methods
  • TDD is about starting with your pain points, and working towards a point where the code feels right, because the pain has subsided

So if ever someone says we are going to use TDD to write our unit tests, take a moment to think.

Red, Green, Refactor - the most important of the three by a long measure is Refactor. Passing tests are a good starting point, but not much more.


Posted 05-03-2008 6:58 AM by Jak Charlton


About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)