Devlico.Us
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @devlicious

Casey Charlton - Insane World

Hang the code, and hang the rules. They're more like guidelines anyway


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.

 



About Casey Charlton

A somewhat passionate and opinionated developer, with occassional sparks of wisdom, and occasional useful information. Check out Devlicio.us!

Our Sponsors

Proudly Partnered With