← 返回卡片

原书出处

Domain-Driven Design Tackling Complexity in the Heart of Software

88 原书第12章|Strategy (A.K.A.Policy)

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

s more than just a useful implementation technique (though that too is valuable as far as it goes).

The consequences of the design pattern fully apply. For example, in Design Patterns, Gamma et al. point out that clients must be aware of different STRATEGIES, which is also a modeling concern. A concern purely of implementation is that STRATEGIES can increase the number of objects in the application. If that is a problem, the overhead can be reduced by implementing STRATEGIES as stateless objects that contexts can share.

The extensive discussion of implementation approaches in Design Patterns all applies here. This is

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

原书定位详情

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

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

EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce