原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
70 原书第09章|How to Model Less Obvious Kinds of Concepts
(); if (container.canAccommodate(drum)) return container; } throw new NoAnswerFoundException(); } }
Granted that this code leaves a lot to be desired. It might pack sand into specialty containers and then run out of room before it packs the hazardous chemicals. It certainly doesn't optimize revenues. But a lot of optimization problems are never solved perfectly anyway. This implementation does follow the rules that have been stated so far.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch09lev1sec2_split_000.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce