Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Inversion of control containers vs handrolled how they compare

594 views

Published on

Slides from the talk at DDD 10

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Inversion of control containers vs handrolled how they compare

  1. 1. @NathanGloyn nathans.dropbox@gmail.comDesign Code Release nathangloynInversion of ControlContainers Vs. handrolledHow they compare
  2. 2. Agenda• A common vocabulary• Why use dependency injection• From scratch(ish)• Summary• Questions
  3. 3. A commonvocabulary
  4. 4. Direct control
  5. 5. Object Graph Data Access Repository Controller Repository Data Access Service Repository Data Access Repository Data Access
  6. 6. Inversion of Control
  7. 7. Container
  8. 8. Composite Root
  9. 9. Lifecycle
  10. 10. Why use dependency injection?
  11. 11. TestableThinkstock Images/Comstock/Getty Images
  12. 12. Loosely coupled
  13. 13. Evolvable
  14. 14. CodeFromScratch(ish)
  15. 15. Summary• IoC not always needed• Easy to implement IoC• Removes complexity• Can add complexity
  16. 16. Questions

×