Friday, April 20, 2012

Dependency Lookup v Dependency Injection

So what should you choose, Dependency Lookup or DI? If you use Dependency Lookup, there are hard dependencies on the framework that you use or the factories that must be created. It becomes larger amount of "glue code" and the code is not as easy to test. Therefore, DI used if possible.

Dependency Lookup or Dependency Injection

No comments:

Post a Comment