From: Mark Volkmann Date: 2007-06-09T04:05:02+09:00 Subject: Re: Disadvantages of Dependency Inversion? On Jun 8, 2007, at 1:55 PM, sweetchuck74@gmail.com wrote: > Nowadays, DI (Dependency Inversion) is one of the widely used design > pattern. > It provides several benefits, such as (1) loose coupling between > component (2) effective and easy testing (component testing or unit > testing) > > What are the drawbacks or disadvantages of using DI? I'm not anti-DI, but I think one disadvantage is that it can be hard to follow the code. You see a method in a class, you know something is calling it to inject a value, but you're not sure where it happens or what value is injected.