原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
89 原书第12章|Composite
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