Dependency injection and inversion of control are great design patterns. They are used in virtually any application and it's often some of the first design patterns any .NET developer learns.
Because they make DI so easy, they also enable poor designs, promote constructor bloat and encourage insane workarounds.
📚 Medium articles
https://levelup.gitconnected.com/your-software-quality-is-ruined-by-branch-coupled-dependencies-d55833e17e74
https://levelup.gitconnected.com/dependency-injection-has-made-developers-lazy-255afc5bedf7
⏱️ Timecodes
00:00 Intro
00:10 Typical coupling example
00:20 Refactor to dependency injection
00:34 Constructor bloat
00:51 Issues with dependency injection
01:02 How to solve the problem (joke)
C# C# dotnetCsharp dotnet C# .NETcsharp .net
0 Comments