Dependency Inversion Principle

1 min. read

Dependency Inversion Principle (DIP)

https://lostechies.com/derickbailey/2011/09/22/dependency-injection-is-not-the-same-as-the-dependency-inversion-principle/

The Dependency Inversion Principle (DIP) is a software design guideline which boils down to two recommendations about de-coupling a class from its concrete dependencies:

‘High-level modules should not depend on low-level modules. Both should depend on abstractions.’
‘Abstractions should not depend upon details. Details should depend upon abstractions.’