By pt93903
via jroller.com
Published: Sep 05 2010 / 08:41
As I push farther into this document, though, I‘m kind of overcome by the thought that Enterprise dev is turning dependency injection into its version of string theory. The purported advantages of DI are that you make explicit the wiring up of components. But DI came in on the XML boom where we had cabinets of interconnects that were nameable and traceable. Ok, argument makes sense: pull the random uses of new out of the code. Also, wire together compound components into bigger units (something language does not deal with exceptionally well because there is no concept of a component in any languages that are out there). So doing bean definitions in XML that had subcomponent wirings explicitly laid out made sense. Problem was, XML became its own nightmare and people decided annotations made more sense. So it‘s ‘ok, let‘s go back into the code,‘ begging the question ‘um, how are we better off than we were when we used to do this in the code?‘



Comments
cwilkes replied ago:
No idea what his point was.
henk replied ago:
Indeed, this is just some awkward rant against something, but it doesn't really get clear what the exact point is. Strange...
Voters For This Link (8)
Voters Against This Link (9)