3 ms·
Interesting! With a domain model like this, a program could exhaustively test all paths for invalid states. The model would need to some annotations of invarian
by cpeterso 8y ago
Interesting! With a domain model like this, a program could exhaustively test all paths for invalid states. The model would need to some annotations of invariants or could ask a human to review.
I highly recommend Eric Evans' book "Domain-Driven Design: Tackling Complexity in the Heart of Software" (2003) mentioned on this page. It is a bit of slog, but worth it.
Or for a quick introduction to domain-driven design, check out the (free download) of "Domain Driven Design Quickly" e-book from InfoQ:
https://www.infoq.com/minibooks/domain-driven-design-quickly https://www.infoq.com/minibooks/domain-driven-design-quickly