Domain-driven-design (DDD) pitfalls

前端 未结 7 1481
野的像风
野的像风 2021-01-30 02:46

I am quite new with DDD and would like to know about any pitfalls you might want to share. I will summarize it later for more newbies to read :)

Thanks

Summary s

7条回答
  •  暖寄归人
    2021-01-30 03:22

    It's not from my personal experience with subject, but it was mentioned for a couple of times in DDD books and it's what I've been thinking about recently: use Entities when you really need identity, in other cases use Value Object. I.e., Entity pattern often happens to be the default choice for any model noun, and it's not the way it should be.

提交回复
热议问题