知识卡片
柔性设计兼顾调用与修改
柔性设计要服务两种开发工作:调用者能从少量、松耦合的领域概念组合出不同业务场景,并预期结果;修改者能从同一模型看懂代码职责,在需求变化时找到可调整的位置,预判改动影响。同一人也会在两种角色间切换。只让接口易调用、却让内部依赖难以理解,仍不足以支撑持续重构。参见[[柔性设计反过来促进模型发现]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter Ten. Supple Design · 查看原书依据
One role is the developer of a client, who weaves the domain objects into the application code or other domain layer code, utilizing capabilities of the design. A supple design reveals a deep underlying model that makes its potential clear. The client developer can flexibly use a minimal set of loosely coupled concepts to express a range of scenarios in the domain.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第72章《Chapter Ten. Supple Design》(源文件:_epub-src/0321125215_ch10.html)
- 结论依据:原文分别讨论使用领域对象的客户开发者与修改设计的开发者,要求两者看到同一深层模型,并能理解组合和修改的结果。
- 原始内容:One role is the developer of a client, who weaves the domain objects into the application code or other domain layer code, utilizing capabilities of the design. A supple design reveals a deep underlying model that makes its potential clear. The client developer can flexibly use a minimal set of loosely coupled concepts to express a range of scenarios in the domain.