Clean Architecture



Download 6,37 Mb.
Pdf ko'rish
bet71/259
Sana26.02.2022
Hajmi6,37 Mb.
#465587
1   ...   67   68   69   70   71   72   73   74   ...   259
Bog'liq
Clean Architecture A Craftsman’s Guide to Software Structure and Design by Robert C. Martin (z-lib.org)

111
14
C o m pon e nt 
C ou plin g
The next three principles deal with the relationships between components. 
Here again we will run into the tension between develop-ability and logical 
design. The forces that impinge upon the architecture of a component 
structure are technical, political, and volatile.
www.EBooksWorld.ir


Chapter 14 Component Coupling
112
Th e Ac yc l i c D e pe n d e n c i e s Pr i n c i pl e
Allow no cycles in the component dependency graph.
Have you ever worked all day, gotten some stuff working, and then gone 
home, only to arrive the next morning to find that your stuff no longer 
works? Why doesn’t it work? Because somebody stayed later than you and 
changed something you depend on! I call this “the morning after syndrome.”
The “morning after syndrome” occurs in development environments where 
many developers are modifying the same source files. In relatively small 
projects with just a few developers, it isn’t too big a problem. But as the size 
of the project and the development team grow, the mornings after can get 
pretty nightmarish. It is not uncommon for weeks to go by without the team 
being able to build a stable version of the project. Instead, everyone keeps on 
changing and changing their code trying to make it work with the last 
changes that someone else made.
Over the last several decades, two solutions to this problem have evolved, 
both of which came from the telecommunications industry. The first is “the 
weekly build,” and the second is the Acyclic Dependencies Principle (ADP).
Th e We e k ly B u i l d
The weekly build used to be common in medium-sized projects. It works like 
this: All the developers ignore each other for the first four days of the week. 
They all work on private copies of the code, and don’t worry about 
integrating their work on a collective basis. Then, on Friday, they integrate all 
their changes and build the system.
This approach has the wonderful advantage of allowing the developers to live 
in an isolated world for four days out of five. The disadvantage, of course, is 
the large integration penalty that is paid on Friday.
Unfortunately, as the project grows, it becomes less feasible to finish 
integrating the project on Friday. The integration burden grows until it starts 
www.EBooksWorld.ir



Download 6,37 Mb.

Do'stlaringiz bilan baham:
1   ...   67   68   69   70   71   72   73   74   ...   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