Say you want to test how a program fares when strings are malformed, or the disk is full, etc. It can be hard to simulate this if the code refers to variables and results from functions from all over the place.<p>Making code into reusable modules code is generally a good thing, but it&#x27;s even better if you make them in a way that will help you test those chunks independently as well - that is testable code.