3 ms·
Someone asked Java DI related question. All answers were dogmatic. http://stackoverflow.com/questions/131975/what-are-the-benefits-of-dependency-injection-cont
by dgregd 14y ago
Someone asked Java DI related question. All answers were dogmatic.
http://stackoverflow.com/questions/131975/what-are-the-benefits-of-dependency-injection-containers http://stackoverflow.com/questions/131975/what-are-the-benef...
I tend to think that sometimes guys choose (or are forced to choose) solutions like configuration xml files over source code files just to keep quiet all these inquisitors.
- flyinRyan 14y agoI didn't see any concise answers there so I'll say why I use this a lot at work: - If I use Spring.Net I never have to put stupid trace logging on any functions but I get it for free. I make one change in the XML config files and suddenly every function for every inject object has full tracing turned on. - Getting new code installed into production is a huge drama/pain but changing a config file doesn't have the same level of bureaucracy.