4 ms·
> I think one of the major advantages of writing testable code is that you get better code and architecture for free. This. Untestable code tends to be so tig
by rualca 6y ago
> I think one of the major advantages of writing testable code is that you get better code and architecture for free.
This.
Untestable code tends to be so tightly coupled that's practically impossible to isolate subcomponents or even pure function bits. Being untestable is synonymous to being unmaintainable. Complaining about the hassle of creating unit tests is a red flag about the overall state of the whole project.