If your code is hard to test, you haven’t designed it well

If your code is hard to test, you haven’t designed it well. It is not a valid reason to not test it. It is not an excuse to write tests that are hard to maintain.

Each Tuesday, I post a one-liner — an insight learned from 20 years as a software development professional distilled into a succinct statement.