Clean Architecture


I n fo r m ati o n H i d i n g



Download 6,37 Mb.
Pdf ko'rish
bet52/259
Sana26.02.2022
Hajmi6,37 Mb.
#465587
1   ...   48   49   50   51   52   53   54   55   ...   259
Bog'liq
Clean Architecture A Craftsman’s Guide to Software Structure and Design by Robert C. Martin (z-lib.org)

I n fo r m ati o n H i d i n g
The 
FinancialReportRequester
interface serves a different purpose. It is 
there to protect the 
FinancialReportController
from knowing too much 
www.EBooksWorld.ir


Conclusion
75
about the internals of the 
Interactor
. If that interface were not there, then the 
Controller
would have transitive dependencies on the 
FinancialEntities
.
Transitive dependencies are a violation of the general principle that software 
entities should not depend on things they don’t directly use. We’ll encounter 
that principle again when we talk about the Interface Segregation Principle 
and the Common Reuse Principle.
So, even though our first priority is to protect the 
Interactor
from changes to 
the 
Controller
, we also want to protect the 
Controller
from changes to the 
Interactor
by hiding the internals of the 
Interactor
.
C o n c lu s i o n
The OCP is one of the driving forces behind the architecture of systems. 
The goal is to make the system easy to extend without incurring a high 
impact of change. This goal is accomplished by partitioning the system into 
components, and arranging those components into a dependency hierarchy 
that protects higher-level components from changes in lower-level 
components.
www.EBooksWorld.ir


This page intentionally left blank 
www.EBooksWorld.ir


77
9
L S P: Th e L i s kov 
S u bstitution 
Pr i nc i ple
www.EBooksWorld.ir



Download 6,37 Mb.

Do'stlaringiz bilan baham:
1   ...   48   49   50   51   52   53   54   55   ...   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