O'Reilly logo

Domain Modeling Made Functional by Scott Wlaschin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Representing Complexity in Our Domain Model

As we have drilled down into this one workflow, the domain model has become a lot more complicated. That’s good. Better to spend time on understanding complexity now rather than later, when we are in the middle of coding. “A few weeks of programming can save you hours of planning,” as they say.

Here’s a diagram of the workflow now:

images/order-state.png

But this diagram doesn’t reflect everything that we’ve learned. Let’s see if we can do better and capture all this new information in our text-based language.

Representing Constraints

We’ll start with the most primitive values first: the product codes and quantities, which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required