Writing Testable Code Is About Managing Complexity is a recent blog post by Phil Haack. He provides some good insight into the benefits of writing testable code. My group is getting ready to kick off a project using Agile practices and writing testable code is going to be key to our success, so this was very timely information for me. Phil summarizes with the results (or side effects) below. Please check out his article for more details.
- A nice suite of regression tests.
- Well separated code that helps manage complexity.
- Well separated code that helps enable concurrent development.