Domain-Driven Design: Tackling Complexity in the Heart of Software


Example Working Out a Cargo Router



Download 7,21 Mb.
Pdf ko'rish
bet27/343
Sana17.11.2022
Hajmi7,21 Mb.
#867526
1   ...   23   24   25   26   27   28   29   30   ...   343
Bog'liq
Eric Evans 2003 - Domain-Driven Design - Tackling Complexity in the Heart of Software

Example
Working Out a Cargo Router
The following two dialogs have subtle, but important, differences. In each scenario, watch for how
much the speakers talk about what the software means to the business versus how it works
technically. Are the user and developer speaking the same language? Is that language rich enough
to carry the discussion of what the application must do?
Scenario 1: Minimal Abstraction of the Domain
Figure 2.1.
User:
So when we change the customs clearance point, we need to redo the whole routing plan.


Developer:
Right. We'll delete all the rows in the shipment table with that cargo id, then we'll
pass the origin, destination, and the new customs clearance point into the 
Routing Service,
and
it will re-populate the table. We'll have to have a Boolean in the 
Cargo
so we'll know there is data
in the shipment table.
User:
Delete the rows? OK, whatever. Anyway, if we didn't have a customs clearance point at all
before, we'll have to do the same thing.
Developer:
Sure, anytime you change the origin, destination, or customs clearance point (or
enter one for the first time), we'll check to see if we have shipment data and then we'll delete it
and then let the 
Routing Service
regenerate it.
User:
Of course, if the old customs clearance just happened to be the right one, we wouldn't want
to do that.
Developer:
Oh, no problem. It's easier to just make the 
Routing Service
redo the loads and
unloads every time.
User:
Yes, but it's extra work for us to make all the supporting plans for a new itinerary, so we
don't want to reroute unless the change necessitates it.
Developer:
Ugh.
Well, then, if you are entering a customs clearance point for the first time, we'll
have to query the table to find the old derived customs clearance point, and then compare it to the
new one. Then we'll know if we need to redo it.

Download 7,21 Mb.

Do'stlaringiz bilan baham:
1   ...   23   24   25   26   27   28   29   30   ...   343




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