News for hackers. Stuff that matters.
Re:Unit Testing is Overrated (2020) by AstralStorm on Thursday April 07, 2022 @07:51AM (#30943248)
That person never wrote portable code. I wouldn't envy anyone maintaining or refactoring it to support more platforms.

Main reasons to have dependency injection is to have properly runtime switchable code with less shared state. That it makes testing easier is a side effect.

There are no comments on this comment yet.