SOLID - The D is for Dependency Inversion Principle - Freek Lijten
The fifth principle of the five SOLID principles is the Dependency Inversion Principle (DIP). You might expect an article on the ISP first, but I feel the internet is filled with enough posts about SOLID. This one was already finished so I'll publish it nonetheless :)
The DIP deals with avoiding mixing different levels of abstraction in your code. In this article we will explore the last of these principles in depth.
As for the previous four, Robert C. Martin took the time to summarize the Dependency Inversion Principle for us:
1. High level modules should not depend upon low level modules. Both should depend upon abstractions.
2. Abstractions should not depend upon details. Details should depend upon abstractions.
Read full article from SOLID - The D is for Dependency Inversion Principle - Freek Lijten
No comments:
Post a Comment