是否有任何使用 DDD(域驱动设计)的开源项目? [英] Are there any open source projects using DDD (Domain Driven Design)?

查看:32
本文介绍了是否有任何使用 DDD(域驱动设计)的开源项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图理解 DDD 背后的概念,但我发现仅通过阅读书籍很难理解,因为它们倾向于以相当抽象的方式讨论该主题.我想在代码中看到一些很好的 DDD 实现,最好是在 C# 中.

I'm trying to understand the concepts behind DDD, but I find it hard to understand just by reading books as they tend to discuss the topic in a rather abstract way. I would like to see some good implementations of DDD in code, preferably in C#.

在开源世界中是否有一些很好的项目实践 DDD 的例子?

Are there any good examples of projects practicing DDD in the open source world?

推荐答案

Eric Evans 和一家瑞典咨询公司基于 Eric 在整本书中使用的交付示例发布了一个示例应用程序.它是用 Java 编写的,但项目页面上有详细的概念说明.

Eric Evans and a Swedish consulting company have released a sample application based on the shipping example that Eric uses throughout the book. It's in Java, but the concepts are well documented on the project page.

http://dddsample.sourceforge.net/

但是,请注意,DDD 更多的是关于旅程而不是目的地.了解您正在查看的示例代码在成为您现在看到的样子之前采用了多种形式.您没有看到最初使用的笨拙的模型,并且您错过了根据沿途获得的洞察力重构模型所采取的步骤.虽然构建块在 DDD 中很重要,但 Eric 认为它们被过分强调了,所以对所有样本持保留态度.

However, be warned that DDD is more about the journey than the destination. Understand that the sample code you are looking took many forms before it became what you see now. You did not see the awkward models that were used initially and you're missing the steps taken to refactor the model based on insight gained along the way. While the building blocks are important in DDD, Eric belives they are over-emphasized, so take all samples with a grain of salt.

这篇关于是否有任何使用 DDD(域驱动设计)的开源项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆