Re:Dependency Injection is a Virtue
by jebblue on Monday January 07, 2013 @10:13AM
(#5021303)
I think the Spring concepts confuse things more than solve problems. Example: configuring stuff in a bean.xml file, your code does not own the creation of the instances, some magical springy mechanism does it for you. What's wrong with just letting the program read its startup parameters from a properties file? Stack traces from springy code is just that like trying to eat a pea with a knife.
[ Parent
| on HN ]
Nothing is wrong with letting your program read it's startup parameters from a properties file (and thus doing all the wiring up of classes in code yourself). Spring and it's bean.xml files are meant as a replacement option for that for when you find that doing-it-yourself is too tedious/too much code.