What are the downsides to using Dependency Injection? [closed]

I’m trying to introduce DI as a pattern here at work and one of our lead developers would like to know: What – if any – are the downsides to using the Dependency Injection pattern?

Note I’m looking here for an – if possible – exhaustive list, not a subjective discussion on the topic.


Clarification: I’m talking about the Dependency Injection pattern (see this article by Martin Fowler), not a specific framework, whether XML-based (such as Spring) or code-based (such as Guice), or “self-rolled”.


Edit: Some great further discussion / ranting / debate going on /r/programming here.

19 Answers
19

Leave a Comment