News for hackers. Stuff that matters.
Re:Dependency Injection is a Virtue by laureny on Monday January 07, 2013 @10:04AM (#5021242)
> The stupidest reason I keep hearing over and over again is DI makes it possible to change an implementation at runtime.

No, DI is about setting up your application at start time, not at runtime.

Configuration frameworks only cover a tiny fraction of this problem (basically by forcing you to pass a giant "Config" object everywhere). DI generalizes this process by making the information passed around more granular.

There are no comments on this comment yet.