Dependency Injection is overrated?
This post http://www.artima.com/forums/flat.jsp?forum=106&thread=238700 is one of the most pragmatic articles about Dependency Injection I have ever read. It’s very grateful to know that you are not alone in this world.
I recommend picking an eye to the whole article (it’s very short in fact), but the conclusion Ian wrote is the following:
“Despite the cosmetic differences between the Service Locator Pattern and Dependency Injection, the two are functionally quite similar. The biggest difference between them is not what can be accomplished, or even accomplished easily, but rather the style of programming that each requires. The Service Locator Pattern is a code-focused approach; when an instance of a service is needed, code explicitely calls out to a service locator to obtain it. In contrast, Dependency Injection is a more extralinguistic approach, providing clients their dependencies without any explicit action on the clients behalf.”
Thanks for everyting Ian. Very good post.