News for hackers. Stuff that matters.
Re:Why I stopped using Spring by galuvian on Wednesday December 25, 2013 @12:43PM (#6963574)
Auto wiring is great for test code. Most of you need to know about the test is contained in the testing class.

But I don't like using auto wired in the main code because it means I am required to use that wiring for every use. I find that we want to use classes in a few different ways, and keeping the dependency definitions and configuration values in the XML decouples it from the code and increases both reusability as well as exposing the XML configurations after deployment so that a recompile isn't required in the field.

Re:Why I stopped using Spring by ivan_gammel on Wednesday December 25, 2013 @01:17PM (#6963701)
I've never configured DI after deployment. Can you show a use case when it makes sense?
Re:Why I stopped using Spring by mtrimpe on Wednesday December 25, 2013 @05:19PM (#6964482)
Different DB drivers and connection pool setups for example.

Taken to extremes I've also used Spring to configure a rudimentary ETL framework for example, where the entire pipeline could be (re-)configured post release.

Re:Why I stopped using Spring by ivan_gammel on Thursday December 26, 2013 @04:19AM (#6965726)
Well, that seems to be a special case. You still do not need to move 99% of your wiring out of your app.