3 ms·
The DI obsession in ASP.NET is a little weird, and I'm not a great fan of how magic it makes everything. You don't have to do things that way, but if you don't
by thrower123 5y ago
The DI obsession in ASP.NET is a little weird, and I'm not a great fan of how magic it makes everything. You don't have to do things that way, but if you don't, you'll be fighting against the grain the whole time, because everything comes packaged as middlewares and components and services that you're supposed to just plug into that framework.
- FridgeSeal 5y agoDI frustrates me every time I have to do it, or touch code that uses it. It’s all magic layers and unnecessary abstractions over the apparently heinous crime of “passing arguments down into functions” and setting it up feels like the programming equivalent of performing a sacred incantation.