DEV Community

Cover image for Programming Tip #4: Domain Modeling using And and Or types
Jesse Warden
Jesse Warden

Posted on

3 1

Programming Tip #4: Domain Modeling using And and Or types

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.

Image description

Learn More:

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay