Functional Domain Modeling with Gleam
summary
Shows how Gleam's type system and pure functions produce a precise domain model for DDD, using structs to represent data, union types for choices, and functions whose signatures encode allowed state transitions. Examples include a card game model and a cafe order flow where states like Placed → Paid → Preparing are explicit. Implementation keeps side effects at the edges, uses Result-style error types, and targets the BEAM for concurrency and production deployment.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:10What is DDD
- 2:55Functional and Gleam for DDD
- 5:25Card game example
- 11:22Café order workflow
- 14:33Evolving the domain model
- 15:37References and closing
related talks
01h 00mThe Glamour and Misery of the Domain
49mExploring domain driven design in Go
01h 00mFrom Domain Driven Design DDD to Delivery
37mDomain modelling in object-oriented and functional programming, based on C# and F#
47mDomain-Driven Design: A Complete Example
29mRethinking Domain-Driven Design in Go
42mTo DDD or not to DDD? Domain modelling case study
52mFunctional Patterns in Domain Modeling
