Clean Architecture



Download 6,37 Mb.
Pdf ko'rish
bet60/259
Sana26.02.2022
Hajmi6,37 Mb.
#465587
1   ...   56   57   58   59   60   61   62   63   ...   259
Bog'liq
Clean Architecture A Craftsman’s Guide to Software Structure and Design by Robert C. Martin (z-lib.org)

91
Conclusion
C o n c r e te C o m p o n e nt s
The concrete component in Figure 11.1 contains a single dependency, so it 
violates the DIP. This is typical. DIP violations cannot be entirely removed, 
but they can be gathered into a small number of concrete components and 
kept separate from the rest of the system. 
Most systems will contain at least one such concrete component—often 
called 
main
because it contains the 
main
1
function. In the case illustrated in 
Figure 11.1, the 
main
function would instantiate the 
ServiceFactoryImpl
and place that instance in a global variable of type 
ServiceFactory
. The 
Application
would then access the factory through that global variable. 
C o n c lu s i o n
As we move forward in this book and cover higher-level architectural 
principles, the DIP will show up again and again. It will be the most visible 
organizing principle in our architecture diagrams. The curved line in 
Figure 11.1 will become the architectural boundaries in later chapters. 
The way the dependencies cross that curved line in one direction, and toward 
more abstract entities, will become a new rule that we will call the 
Dependency Rule
.
1. In other words, the function that is invoked by the operating system when the application is first started up.
www.EBooksWorld.ir


This page intentionally left blank 
www.EBooksWorld.ir


93
IV
If the SOLID principles tell us how to arrange the bricks into walls and 
rooms, then the component principles tell us how to arrange the rooms into 
buildings. Large software systems, like large buildings, are built out of smaller 
components. 
In Part IV, we will discuss what software components are, which elements 
should compose them, and how they should be composed together into 
systems. 

Download 6,37 Mb.

Do'stlaringiz bilan baham:
1   ...   56   57   58   59   60   61   62   63   ...   259




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish