News for hackers. Stuff that matters.
Re:Dependency Injection is a Virtue by _ikke_ on Monday January 07, 2013 @11:49AM (#5021840)
DI is not about glorified globals at all. Nothing forces you to pass in the same object to all things dependend on it.

It just allows you to pass in anything the situation requires.

It allows your code to depend on an interface, instead of an implementation, even if the language doesn't have explicit interfaces.

There are no comments on this comment yet.