DDD with Functional Programming

#79 - Domain-Driven Design With Functional Programming - Scott Wlaschin

Topic 4 of 8

Published Mar 7, 2022 · Clip 21:04–28:49 (7:45)

Scott explains that DDD is paradigm-agnostic since it focuses on the domain, but FP suits it well: functions model workflows (input/output), algebraic type systems easily model choices, and value objects are the default in FP. He covers how DDD tactical patterns map to FP, why the repository pattern and self-saving objects are anti-patterns in FP, and how FP naturally separates pure business logic from I/O at the edges, echoing hexagonal/onion architectures.