DDD and FP Can’t Be Friends - Yet
summary
Fast, specific clash: DDD uses domain storytelling and bounded contexts to drive modular design and ubiquitous language; FP responds with BDD/TDD tests in Java and builds a working Cart/Article model, a tentative shipping address type that compiles, and a generic container lifted to a functor/applicative to combine invalid-reason lists. The demo runs: tests fail then succeed as behavior is implemented, showing concrete artifacts (classes, enums, tests) and a surprising payoff — FP abstractions reveal domain insights while DDD insists on concrete vocabulary and strategic boundaries.
AI-written summary · about
chapters (14)
- 0:00Introduction to DDD
- 1:07Understanding the domain
- 9:52Strategic design and bounded contexts
- 13:32Delivery scenarios deep dive
- 18:14Functional programming approach
- 23:33Test-driven development
- 26:29Implementing test cases
- 31:55Refining domain model
- 34:23Functional abstractions
- 39:14Ubiquitous language
- 41:43Simplicity vs generality
- 43:49Behavior vs data modeling
- 45:56Mutability in modeling
- 46:57Wrap-up and key takeaways
