DEV Community

Discussion on: When to TDD (Test Driven Develop), a Newbie’s Story

Collapse
 
dev3l profile image
Justin L Beall

TDD turns programming into a team sport! Think basketball instead of golf.

If an entire team practices TDD, pick any random person at any random time. A minute ago, all their code worked!!!

Collapse
 
jhiatt profile image
jhiatt

I love this point of view. It's probably much easier to write up some solid tests than explain in detail everything you are doing so that no one messes up your work. If someone changes something that affects your code, the tests will point it out for them. Just started a new project where TDD is not in place and we are feeling the effects.