原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
14 原书第01章|Knowledge-Rich Design
, Voyage voyage) { return (cargo.size() + voyage.bookedCargoSize()) <= (voyage.capacity() * 1.1); }
It will be clear to all that overbooking is a distinct policy, and the implementation of that rule is explicit and separate.
Now, I am not recommending that such an elaborate design be applied to every detail of the domain.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch01lev1sec4.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce