← 返回起始笔记位置

知识卡片

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

货运模块按业务叙事组织

理解等级:中级

原书图7.7把货运对象按实体、值对象、服务模式分包:同包对象缺少业务关联,客户、运输、计费之间的联系反而跨包。图7.8改以 Customer、Shipping、Billing 组织,让模块名能讲出“与客户达成协议→运输货物→依约计费”的业务故事。这是简化货运模型的教学示例,边界还可继续迭代;判断模块质量要看其是否帮助团队表达领域,而非照搬这三个名字。参见[[技术分包勿拆散领域对象]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第07章|Modules in the Shipping Model · 查看原书依据

      The MODULE names in Figure 7.8 contribute to the team's language. Our company does shipping for customers so that we can bill them. Our sales and marketing people deal with customers, and make agreements with them. The operations people do the shipping, getting the cargo to its specified destination.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第58章《原书第07章|Modules in the Shipping Model》(源文件:_epub-src/0321125215_ch07lev1sec10.html;图7.7–7.8) - 结论依据:原文对比按模式分类和按客户、运输、计费概念组织的图,说明后者名称可进入团队共同语言。 - 原始内容:The MODULE names in Figure 7.8 contribute to the team's language. Our company does shipping for customers so that we can bill them. Our sales and marketing people deal with customers , and make agreements with them. The operations people do the shipping , getting the cargo to its specified destination.