在哪里可以找到DDD的良好示例? [英] Where do I find some good examples for DDD?

查看:89
本文介绍了在哪里可以找到DDD的良好示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习域驱动设计,但是有些实际问题使我感到困惑,我认为看到一些好的样本可能会清除。

I'm learning about Domain Driven Design, however there are some practical issues that are confusing to me that I think seeing some good samples might clear up.

有谁知道一些可以很好地完成基本DDD概念建模的良好工作代码示例?

Does anyone know of some good working code samples that do a good job of modelling basic DDD concepts?

特别感兴趣的


  • 示例性域模型

  • 存储库

  • 域/应用程序服务的使用

  • 值对象

  • 聚合根

  • An illustrative Domain Model
  • Repositories
  • Use of Domain/Application Services
  • Value Objects
  • Aggregate Roots

推荐答案

DDD样本的困难在于它们通常是非常特定于领域的,并且最终系统的技术实现并不总是显示在建模领域时所做的设计决策和转换,而这实际上是DDD的核心。 DDD与其说是代码,不如说是关于流程的更多内容。 (有人说,最好的DDD示例是书本!)

The difficulty with DDD samples is that they're often very domain specific and the technical implementation of the resulting system doesn't always show the design decisions and transitions that were made in modelling the domain, which is really at the core of DDD. DDD is much more about the process than it is the code. (as some say, the best DDD sample is the book itself!)

话虽如此,一个评论良好的示例应用程序至少应该揭示其中的一些决定,并为您提供一些建议。

That said, a well commented sample app should at least reveal some of these decisions and give you some direction in terms of matching up your domain model with the technical patterns used to implement it.

您尚未指定要使用的语言,但我会给出

You haven't specified which language you're using, but I'll give you a few in a few different languages:

DDDSample -一个Java示例,反映了Eric Evans在他的书中谈论的示例。这是一个很好的注释,它显示了解决具有单独的有界上下文(即表示层)的各种问题的许多不同方法。它正在积极研究中,因此请定期检查它是否有更新。

DDDSample - a Java sample that reflects the examples Eric Evans talks about in his book. This is well commented and shows a number of different methods of solving various problems with separate bounded contexts (ie, the presentation layer). It's being actively worked on, so check it regularly for updates.

dddps -蒂姆·麦卡锡(Tim McCarthy)的示例C#应用程序,他的书,《使用C#的.NET域驱动设计》

dddps - Tim McCarthy's sample C# app for his book, .NET Domain-Driven Design with C#

S#arp体系结构-一个实用的C#示例,可能不是纯 DDD方法,可能是因为它缺乏实际的领域问题,但仍然

S#arp Architecture - a pragmatic C# example, not as "pure" a DDD approach perhaps due to its lack of a real domain problem, but still a nice clean approach.

使用所有这些示例应用程序,最好查看SVN /其他的最新主干版本,以真正了解思想和技术。模式,因为它们应该定期更新。

With all of these sample apps, it's probably best to check out the latest trunk versions from SVN/whatever to really get an idea of the thinking and technology patterns as they should be updated regularly.

这篇关于在哪里可以找到DDD的良好示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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