Create a Safety Net

Practicing TDD provides the cadence for building software, and it also gives developers a safety net for building code. You could discount the idea of a safety net, but it’s just as important for software developers as it is for an acrobat. Who would go up on the trapeze five times a day knowing that one small slip would be her last? Having that safety net is psychological assurance. It bolsters the confidence needed to try stuff and gives you the freedom to experiment that leads to true innovation.

The greatest of the many benefits of doing test-first development is the end result: software developers are writing more testable code, which costs less to maintain.

Developers who are practicing test-after will sometimes discover ...

Get Beyond Legacy Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.