知识卡片

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

借成熟形式体系省去自创协议

理解等级:高级

在领域中找得到成熟的形式体系时,可选择性改造它,而不是为每个业务对象另造一套操作协议。会计体系已有实体和规则;共享份额可借用算术的加、减、按比例分配,使操作能按熟悉的规则组合。

收益来自形式体系与领域概念确实对齐,并在实现中保持一致;若只借用数学名称却改变运算含义,熟悉名称反而会误导读者。下列份额数学是原书贷款项目的设计示例,不是已验证的通用贷款算法。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第10章|Angles of Attack · 查看原书依据

      Creating a tight conceptual framework from scratch is something you can't do every day. Sometimes you discover and refine one of these over the course of the life of a project. But you can often use and adapt conceptual systems that are long established in your domain or others, some of which have been refined and distilled over centuries.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第82章《Angles of Attack》(源文件:_epub-src/0321125215_ch10lev1sec9.html;单元01) - 结论依据:原文建议借已建立的会计或数学体系;后文说明算术协议易学的前提是设计严格符合算术规则。 - 原始内容:Creating a tight conceptual framework from scratch is something you can't do every day. Sometimes you discover and refine one of these over the course of the life of a project. But you can often use and adapt conceptual systems that are long established in your domain or others, some of which have been refined and distilled over centuries.