Wednesday, 11 February 2009

All about Dependency Injection

Dependency Injection is a technique that relieves us from the pain of static binding and makes the system design decoupled or at least loosely coupled.

In a tightly coupled system, the layers (e.g. UI, BLL and DAL) are dependent on each other. If we change something in one layer, then all the layers need to be recompiled and redeployed.

Why Loosely Coupled?
  • Reuasability
  • Maintainability
  • Scalability
  • Mocking (for testing purposes)

More Info:


No comments: