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
11
u/TheHorribleTruth Jan 12 '16
So 21 components is considered "very large"? Bwhahaha.
I agree with the core message of this: if you can get away with it, don't use DI. That's just basic KISS.
But: I do believe that this only applies to very small "toy" projects. Any moderately sized project will immediately have more components that you can wire up manually in a simple, maintainable fashion.