http://www.perlmonks.org?node_id=496881


in reply to A danger of test driven development.


I find that test driven design give a genuine boost to my productivity. However, your post touches upon a minor worry that I have about it.

I think that with test driven design it is possible to write code to pass tests rather than code that fulfils the intended purpose. The presence of a safety net may make you a little careless on the high-wire.

I'd still strongly advocate test driven design but I think that it is worth remembering that code is written for a purpose and that purpose isn't to pass tests.

--
John.