Re:.NET Myths Dispelled
by cogman10 on Saturday March 12, 2022 @06:31PM
(#30656109)
Nothing, IMO. DI, when used properly, significantly cleans up code bases. It's code bases without DI that often become both untestable and unwieldy.
[ Parent
| on HN ]
The 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.
Re:.NET Myths Dispelled
by erik_seaberg on Sunday March 13, 2022 @06:04AM
(#30659800)
Any language that permits any style choices at all is going to be vulnerable to self-inflicted rules requiring bad style.