Home » questions » Inversion of Control / Dependency Injection - always a good thing?
Inversion of Control / Dependency Injection - always a good thing?
I've read lots of things that tell me that Inversion of Control / Dependency Injection yeild better design. My question is whether this is always the case. To me, a model that uses Dependency Injection all over the place is less clean than one that doesn't. Sure - there are some obvious benefits in several areas, and I might even conceed that Dependency Injection is necessary, if only for enabling unit testing (although I don't like it) - but to say it is always a good thing, I don't understand. What benefits am I missing here?

Answers
take two
On 2006-08-07 01:01:28
batzoid
On 2006-08-04 15:05:53