News for hackers. Stuff that matters.
Re:Stop being frantic about code testing by rualca on Wednesday March 31, 2021 @04:47PM (#26652971)
> 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.

There are no comments on this comment yet.