Testability == good design?

Published on 19 May 2014.

Is testability a good heuristic for good design?

I’ve experienced TDD improve designs. I’ve also written bad designs for the purpose of being able to write automated tests. Does that mean that designing code for testability is a bad heuristic? I don’t think so. I still think it’s a good heuristic. When testability leads to bad design I think it’s only because we have not yet found a good way to design a particular solution. One day a new pattern, paradigm, or idea will be discovered that allows us to write a testable design that also feels right. In the meantime, we have to make progress.

What is Rickard working on and thinking about right now?

Every month I write a newsletter about just that. You will get updates about my current projects and thoughts about programming, and also get a chance to hit reply and interact with me. Subscribe to it below.