Hacker News new | ask | show | jobs
by vasergen 1393 days ago
DDD is not hightly coupled to OOP, the problem is that most popular books (red and blue one linked in Fowler's blog for example) were written in time when OOP was very popular and authors also used languages that propagates OOP. If the authors would used purely functional languages then people wouldn't assume it is about OOP.
1 comments

Fair point, even though IMHO it's not that hard to apply the concepts from these books to a FP context.

Nowadays there are even resources about DDD specific to the FP world, such as Domain Modeling Made Functional by Scott Wlaschin [0].

[0] https://pragprog.com/titles/swdddf/domain-modeling-made-func...