知识卡片

普通读书笔记卡 · 1971.o.1.b.4.d.1.c.1.b.6

交付规格独立表达货物目标

理解等级:中级

原书假设性货运系统中,Delivery Specification 独立表达货物的交付目标,至少含目的地与到达日期。把目标细节从 Cargo 抽出,可避免货物对象承担全部约束含义,也能在高层讨论时隐藏细节;更关键的是明确“具体路线尚未确定,但最终运输须满足目标”。这是原书示例模型的设计取舍,非已验证的真实运输方案。参见[[交付历史与交付目标分离]]。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第49章《原书第07章|Introducing the Cargo Shipping System》(源文件:_epub-src/0321125215_ch07lev1sec1.html;图7.1) - 结论依据:原文给出交付规格的最小目标属性,并说明从 Cargo 抽出该概念的三项作用,尤其明确交付手段未定但须满足目标。 - 原始内容:Delivery Specification defines a delivery goal, which at minimum would include a destination and an arrival date, but it can be more complex. ... Adding Delivery Specification says explicitly that the exact means of delivery of the Cargo is undetermined, but that it must accomplish the goal set out in the Delivery Specification .