原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
84 原书第11章|Example Earning Interest with Accounts
s the motivation for the most basic of the accounting models. Figure 11.2. A basic accounting model
Value can be added by inserting an Entry. Value can be removed by inserting a negative Entry. Entries are never removed, so the whole history is retained. The balance is the combined effect of all Entries. This balance could be computed on demand or cached, an implementation decision that is encapsulated by the Account interface.
A basic principle of accounting is conservation. Money doesn't appear out of nowhere, nor does it d
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch11lev2sec1.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce