3 ms·
What's so enterprisey about the modern Host/DI? Honestly seems really clean and thin to me.
by jayd16 5y ago
What's so enterprisey about the modern Host/DI? Honestly seems really clean and thin to me.
- cogman10 5y agoNothing, IMO. DI, when used properly, significantly cleans up code bases. It's code bases without DI that often become both untestable and unwieldy.
- pjmlp 5y agoThe keyword here is used properly. Now go on to work on codebases with rules that every class must have an interface, there are no news, everything must come over service locators, 3rd APIs aren't accessed directly, rather over wrapper classes,.... Ah and no PR ever gets accepted if the rules aren't followed.
- erik_seaberg 5y agoAny language that permits any style choices at all is going to be vulnerable to self-inflicted rules requiring bad style.
- pjmlp 5y agoJust like any language used in enterprise shops is not free from enterprise space architects, and .NET is no exception given its customer base from Microsoft products.
- pjmlp 5y agoCodebases with rules that every class must have an interface, there are no new in use other than basic stuff like arrays, everything must come over service locators (configurable externally), 3rd APIs aren't accessed directly, rather over wrapper classes,....
- manigandham 5y agoSounds like a problem with your devs/architects/process than the language stack. It would create a mess out of Java or Go or Ruby too.