← 返回卡片

原书出处

Domain-Driven Design Tackling Complexity in the Heart of Software

89 原书第12章|Composite

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

care about. Recursion through the hierarchy to produce aggregated information is very complicated.

When applying any design pattern in the domain, the first concern should be whether the pattern idea really is a good fit for the domain concept. It might be convenient to move recursively through some associated objects, but is there a true whole-part hierarchy? Have you found an abstraction under which all the parts truly are the same conceptual type?

If you have, COMPOSITE will make those aspects of the model clearer, while allowing you to tap into

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

原书定位详情

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

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

EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce