Programming Tip #4: Domain Modeling using And and Or types. To learn Domain Driven Design, start by using And and Or types to model your domain, the business problem you're solving, using real world language your users use in the code. Do it in small steps, using your compiler to iterate. If you don't have Sum types, Enums can work.
Learn More: