← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1971.o.1.c.1.a.1.b.2

柔性集中在常变关键处

理解等级:中级

柔性设计让开发者能从接口意图预想运行结果和改动影响,靠减少依赖与副作用控制理解负担。领域模型应在对用户最关键、变化最频繁的地方给出足够细的概念和调整空间;其余地方保持简单。

这是一种分配设计精力的原则,不要求全系统都做成同等可配置。判断“关键”和“常变”仍须依据当前业务反馈,不能仅凭抽象的可扩展性愿望。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第13章|A Design for Developers · 查看原书依据

      A supple design communicates its intent. The design makes it easy to anticipate the effect of running code—and therefore it easy to anticipate the consequences of changing it. A supple design helps limit mental overload, primarily by reducing dependencies and side effects. It is based on a deep model of the domain that is fine-grained only where most critical to the users. This makes for flexibility where change is most common, and simplicity elsewhere.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第95章《A Design for Developers》(源文件:_epub-src/0321125215_ch13lev1sec4.html;单元01) - 结论依据:原文说柔性设计表达意图、限制依赖副作用,并只在用户最关切处细化领域模型,使常变处灵活、其他处简单。 - 原始内容:A supple design communicates its intent. The design makes it easy to anticipate the effect of running code—and therefore it easy to anticipate the consequences of changing it. A supple design helps limit mental overload, primarily by reducing dependencies and side effects. It is based on a deep model of the domain that is fine-grained only where most critical to the users. This makes for flexibility where change is most common, and simplicity elsewhere.