paint-brush
Figuring Out When Not To Use DI, IoC, and IoC Containers in .NET C#by@ahmedtarekhasan
336 reads
336 reads

Figuring Out When Not To Use DI, IoC, and IoC Containers in .NET C#

by Ahmed Tarek Hasan17mJanuary 13th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Dependency Injection (DI), Inversion of Control (IoC), and IoC Containers are our friends, but like everything in life, if you abuse using them, you would get what you don’t ever wish for. Before DI and IoC Containers, it was a hell to manage dependencies between different modules/classes and that’s why we were more careful and cautious about defining these dependencies. We used to think twice or even more about each module/class dependency before starting the implementation. However, now after having DI, IoC, and IoC Containers, defining a dependency became like breathing, you implicitly do it when you actually don’t recognize it.
featured image - Figuring Out When Not To Use DI, IoC, and IoC Containers in .NET C#
Ahmed Tarek Hasan HackerNoon profile picture
Ahmed Tarek Hasan

Ahmed Tarek Hasan

@ahmedtarekhasan

.NET (DotNet) Software Engineer & Blogger | https://www.developmentsimplyput.com

L O A D I N G
. . . comments & more!

About Author

Ahmed Tarek Hasan HackerNoon profile picture
Ahmed Tarek Hasan@ahmedtarekhasan
.NET (DotNet) Software Engineer & Blogger | https://www.developmentsimplyput.com

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite