4

I'm reading a book Microsoft .NET: Architecting Applications for the Enterprise. In chapter 3 (Design Principles and Patterns), the book states:

Inversion of control (IOC) is an application of DIP that refers to situations where generic code controls the execution of more specific and external components.

I disagree. I think DIP is an application of IOC. In Martin Fowler's article Inversion of Control Containers and the Dependency Injection pattern he states:

As a result I think we need a more specific name for this pattern. Inversion of Control is too generic a term, and thus people find it confusing. As a result with a lot of discussion with various IoC advocates we settled on the name Dependency Injection.

To me that indicates that DIP is a specific term for a specific application of IOC.

What say you?

richard
  • 12,263
  • 23
  • 95
  • 151
  • 1
    There's a vote to close for the reason "off topic". Huh??? – richard Sep 04 '11 at 04:17
  • Yes; off topic moved to Programmers. The alternative was Not Constructive, which this appears to also fit pretty well. – Jared Farrish Sep 04 '11 at 04:20
  • Duplicate of this question: http://stackoverflow.com/questions/954913/dependency-injection-and-inversion-of-control-terminology – paulsm4 Sep 04 '11 at 04:33
  • I guess the reason I'm asking is that a respected book, written by a respected author and architect, says something differently than what I see others saying. – richard Sep 04 '11 at 04:48
  • possible duplicate of [Inversion of Control < Dependency Injection](http://stackoverflow.com/questions/3226605/inversion-of-control-dependency-injection) – Mark Seemann Sep 04 '11 at 06:32

0 Answers0