Re:Dependency Injection is dangerous for your career
by masklinn on Thursday February 10, 2011 @03:06AM
(#2201232)
> This is not at all the definition of Dependency Injection.
Re-read fleitz message. He never stated what he believed DI to be but what he believes DI to be used for.
> I also think it's wrong to conflate DI with XML.
Which, again, is not what he said at all.
I also think it's wrong to conflate DI with XML. One of the first major DI frameworks, Spring, did use XML for configuring and wiring-up components, but it's also quite popular to do this part purely in the code, without any external configuration files.
[1] http://en.wikipedia.org/wiki/Dependency_injection