Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr...
by FpUser on Tuesday October 15, 2019 @05:18AM
(#21256805)
I am seeing it all the time when consulting for companies. Their developers just love taking relatively small things and turning it into multilayered monster with insane amount of dependencies for code, development building pipelines and deployment.
[ Parent
| on HN ]
Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr...
by gnud on Tuesday October 15, 2019 @05:39AM
(#21256902)
I see that too - but I also see plenty of completely un-testable code, because the controller constantly reads from AppSettings, or creates a new database connection directly, or similar issues.
For small applications, instead of going full on DI, I sometimes just make a few simple public static properties, that I initialize on program startup. Then you can initialize them differently in your test harness. This is a lot easier to understand if you're not an expert in the chosen DI framework or app framework.
Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr...
by sword_smith on Tuesday October 15, 2019 @05:57AM
(#21256997)
I am designing financial software for the crypto industry and I definitely prefer the ability to 1) have a high test coverage, and 2) quickly be able to write regression tests. Without dependency injection with mockable objects, that would not be possible.