知识卡片

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

从别扭的设计追问缺失概念

理解等级:中级

流程难解释、每加需求都使程序更复杂,或对象职责显得别扭时,可把它当成寻找缺失领域概念的入口。先指出具体别扭处,再与专家核对业务事实,提出候选模型并观察其是否更贴合场景。原书假设投资系统的利息计算器越来越复杂,开发者从“延期付款是特殊情况”的假设追问,才发现计提与付款应分开表示;复杂度本身并不证明某个特定新对象正确。参见[[计提与收款是不同业务事实]]。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第09章|Digging Out Concepts · 查看原书依据

      The place to dig is the most awkward part of your design. The place where procedures are doing complicated things that are hard to explain. The place where every new requirement seems to add complexity. Sometimes it can be hard to recognize that there even is a missing concept. You may have objects doing all the work but find some of the responsibilities awkward.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第69章《Digging Out Concepts》,Scrutinize Awkwardness(源文件:_epub-src/0321125215_ch09lev1sec1.html) - 结论依据:原文要求从最别扭的设计处寻找,并通过专家对话试探概念。 - 原始内容:The place to dig is the most awkward part of your design. The place where procedures are doing complicated things that are hard to explain. The place where every new requirement seems to add complexity. Sometimes it can be hard to recognize that there even is a missing concept. You may have objects doing all the work but find some of the responsibilities awkward.