.NET Core Opinion 9 - Embrace Dependency Injection

added by DotNetKicks
2/26/2019 3:09:25 PM

2 Kicks, 529 Views

Someone asked me why dependency injection is popular in .NET Core. They told me DI makes code harder to follow because you never know what classes and objects the app will use unless you run with a debugger. The argument that DI makes software harder to understand has been around for a long time, because there is some truth to the argument.