DEV Community

Discussion on: Tell me a coding confession

Collapse
 
sturzl profile image
Avery • Edited

I agree somewhat. A year on a team that does TDD has taught me when and where it is a great tool. No tool is useful all the time and everywhere.

  • Productivity isn't just this sprint. It is the productivity of the next 10 years of maintaining code.

  • Testing is complex and it will take teams time to ramp up from "testing what they know how to test" to "testing where it is needed".

  • Enterprise rarely has top notch code quality. When the devs are a rotating cast of various experience testing TDD keeps the tests flowing. Testing keeps devs from quitting, users from bad experiences and, ultimately, costs down.