Dependency Inversion Principle | Lars Michael
But now the data layer is depending on the business layer? Yes, indeed. Everything is turned upside-down, because now this object graph adheres to the Dependency Inversion Principle (DIP):
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.
DIP was first introduced by Robert C. Martin (Uncle Bob) back in the mid 90's and is one of the main principles of object-oriented design.
Read full article from Dependency Inversion Principle | Lars Michael
No comments:
Post a Comment