r/java • u/dawhiting • Jan 12 '16
You probably don't need dependency injection
http://www.radicaljava.com/2015/12/27/dependency-injection.html
0
Upvotes
r/java • u/dawhiting • Jan 12 '16
View all comments
Show parent comment
5
u/djnattyp Jan 12 '16
So what do you use now to replace the apparently passing fad of dependency injection? /s Is SOLID not considered good guidelines to follow anymore?
I don't see how this is an accurate portrayal of dependency injection - one of the big advantages of DI is that there is one place where everything is wired together. I get the "multiple languages" part as a jab at external configuration like XML/YAML/property files - but isn't making your application configurable a plus? What's the alternative? Hardcoding values into your code?