4 ms·
Unit tests don't do anything to validate the existence of DI. Most people don't even use DI in their tests. DI is just spaghetti code. The main thing holding C
by zzbzq 6y ago
Unit tests don't do anything to validate the existence of DI. Most people don't even use DI in their tests. DI is just spaghetti code.
The main thing holding C# back is the culture around the DI and weird hostbuilder code associated with ASPNET. If you just skip that part, it's great. Unfortunately a lot of web examples, solutions, and code libraries themselves are ASPNET-focused, and more and more of the code becomes some truly bizarre, unreadable framework injection in an inside-out fluent builder.
- deleted 6y ago[deleted]
- legulere 6y agoDo you mean DI (dependencies being added through the constructor abstracted by an interface) or DI Containers (magic code that magically creates objects for you)?