카테고리 없음

Why 'Inversion' in DIP from SOLID

gimslab.com 2021. 8. 16. 13:24

We should first know traditional layers pattern to understand why the term 'Inversion' is used.

 

from wikipedia.

Traditional layers pattern

In conventional application architecture, lower-level components (e.g., Utility Layer) are designed to be consumed by higher-level components (e.g., Policy Layer) which enable increasingly complex systems to be built. In this composition, higher-level components depend directly upon lower-level components to achieve some task. This dependency upon lower-level components limits the reuse opportunities of the higher-level components.

 

 

I made a simplified design for 'reporting'.

 

dependency INVERSION principle

 

from http://wiki.gimslab.com/moniwiki/wiki.php/Meaning%20of%20INVERSION%20from%20SOLID%20DIP