DDD and FP Can’t Be Friends - Yet
summary
A furniture-store example drives concrete outcomes: domain storytelling and Post‑its produce four bounded contexts, then tests in modern Java (with Haskell ideas) drive the implementation. A tentative shipping address sum type replaces a Boolean, becomes a functor/applicative so address-validation accumulates reason lists (a simple monoid), tests compile and run, and the system reports precise delivery-errors (pack‑station vs home). Tools used: collaborative modeling, TDD/BDD, Java records/enums, IDE generation and small FP abstractions.
AI-written summary · about
chapters (9)
- 0:00Introduction to DDD and FP
- 3:31Understanding the furniture store domain
- 12:49Strategic design and bounded contexts
- 21:20Functional programming approach to DDD
- 26:17Test-driven development with examples
- 35:47Implementing domain rules in code
- 42:37Ubiquitous language and abstractions
- 47:10Entities vs value objects debate
- 49:35Wrap-up and key takeaways
