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 imagehelp@codebetter.com
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

[Advertisement]

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)