← 返回卡片

原书出处

Domain-Driven Design Tackling Complexity in the Heart of Software

60 原书第07章|A Final Look

核验版本的摘录快照 · 导入于 2026-11-14T03:12:56.394Z

sponsibility, and it would be laden with methods for deriving specific types of Enterprise Segment.

Therefore, the responsibility for deriving this value lies properly with the object that knows the rules for segmentation, rather than the object that has the data to which those rules apply. Those rules could be split out into a separate "Strategy" object, which could be passed to a Cargo to allow it to derive an Enterprise Segment.

That solution seems to go beyond the requirements we have here, but it would be an option for a lat

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch07lev1sec12.html

EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce