知识卡片
双分录守恒限于闭合系统
双分录交易把价值从一个账户移到另一账户,每笔贷记有对应借记,因此总量在包含所有来源与去向的闭合系统中守恒。若系统边界漏了外部来源或去向,就不能直接把“本系统金额合计不变”当不变量。
原书图11.3把 Transaction 连接成对 Entry,用来概括 Fowler 的会计模式;它也提醒,简单应用未必需要这种严格模型,不能为了套模式强迫无关事件组成一笔交易。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第11章|Example Earning Interest with Accounts · 查看原书依据
This is the well-established concept of double-entry book-keeping: Every credit has a matching debit. Of course, like other conservation principles, it applies only to a closed system, one that includes all sources and sinks. Many simple applications do not require this rigor.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第84章《Example Earning Interest with Accounts》(源文件:_epub-src/0321125215_ch11lev2sec1.html;单元01)
- 结论依据:原文说明双分录的借贷配对及守恒前提是系统闭合并涵盖全部源汇,也明言很多简单应用不需同等严格度。
- 原始内容:This is the well-established concept of double-entry book-keeping : Every credit has a matching debit. Of course, like other conservation principles, it applies only to a closed system, one that includes all sources and sinks. Many simple applications do not require this rigor.