Sunday, December 14th, 2008

Does TDD speed up development?



Scott Bellware posted a great article on what is often one of the main reasons for people dropping or never starting TDD or Unit Testing; often stating ‘It takes longer doing TDD’ and ‘I can code this much quicker without unit tests.’

The answer to the question, “Does test-driven development speed up development?” depends on what you personally believe “development” is.

He discusses how we should be looking at software production and how the software development business has an out-dated idea of what productivity is.

Test-driven development supports flow. The software development industry at large is years away from recognizing that flow rather than efficiency is what creates giant leaps in productivity.

Looking at this flow and the whole production pipeline he notes

Test-driven development may require you to have nerves of steel while you’re adopting it and dealing with the antithetical notion of going slower to speed up, but it will speed things up. It just might not speed you up.

I really like this concise view on why Test Driven Development does speed up development,  it just may not be what you think of as development.

  • Oreilly,

    I think that is one of the main takes from the post; We need to think in terms of Software Production rather than just the coding part of the process. I think Doron from Typemock post gives a really good real world example of how TDD can save save time and improve quality and confidence.
    http://blog.typemock.com/2008/08/why-tdd-rocks....
  • TDD in my experience does not speed up development, but actually slows it down significantly. How can PMs or senior management expect a developer to take the same amout of time to code an app with full scripts, and test at the same time that it takes to develop without TDD.

    Where the time and money is made up is through QA and maintenance of the app. If the code is rock solid from V1 on, then the theory is that it'll require less time and maintenence in the long run.
blog comments powered by Disqus