News for hackers. Stuff that matters.
Re:Dependency Injection is dangerous for your career by msmith on Thursday February 10, 2011 @02:34AM (#2201168)
This is not at all the definition of Dependency Injection. The wikipedia article [1] does a pretty good job of describing what it really is. DI is a pattern that is intended to reduce coupling between components in a large system. It applies to any OOP language, although it is true to say that the term first gained popularity in the "enterprise" Java world.

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

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.

Re:Dependency Injection is dangerous for your career by msmith on Thursday February 10, 2011 @03:30AM (#2201265)
To be honest, I didn't really understand what he was trying to say, but I am certain that the first two problems he mentions are not what DI is intended to solve.