Functional way of implementing domain driven design

前端 未结 4 1583
感情败类
感情败类 2021-01-31 03:44

I\'ve had a lot of experience with writing domain driven applications using C#. The more applications I write the more I find that I want to take an approach that doesn\'t fit t

4条回答
  •  执笔经年
    2021-01-31 04:33

    There is a new idea of using Clojure (a modern version of Lisp), which is a functional language, to create domain models. This presentation is a quite good intro (and it is also an awesome demo of HTML5).

    Long story short, functional attitude is great when combined with Event Sorcing. It lets you create fully testable models very easily. And if you don't want to jump into entirely new language right now, modern C# is a quite good language to write functional-like code (at least for implementing common domain models)

提交回复
热议问题