We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
最近我尝试收集动态语言中与 DDD 相关的所有已知资源。我最终得到了 这个 guthub 存储库。
请参考此处的一些代码示例:
1) Ruby DDD 示例应用程序
2) Django 中的 DDD 示例
3) 采用 DDD 方法的 Python 看板
Recently I tried to collect all known sources related to DDD in dynamic languages. I was end up with this guthub repo.
For reference here some code examples:
1) Ruby DDD Sample App
2) DDD in Django example
3) Kanban board in Python with DDD approach
不,我不是,但是原理是一样的,所以没有任何理由不能很好地工作,特别是如果所讨论的动态语言具有良好的面向对象支持(例如 Ruby)。
也许更好,因为您的域模型可以更轻松地使用例如特征/混合,以及来自 的概念DCI 等(如果合适的话)。
No, I'm not, but the principles remain the same so there shouldn't be any reasons why it wouldn't work out just as well, especially if the dynamic language in question has a good OO support (e.g. Ruby).
Even better perhaps, since your domain model could more easily make use of e.g. traits/mixins, and concepts from DCI, etc. if there's a fit.
有一些新兴框架,例如 Hanami-rb 鼓励使用 DDD 原则。
但正如我在此处提到的,虽然这是可能的,但有一些缺点可以解释为什么使用 DDD在“动态类型语言”这个词中并不常见。
There is some emerging frameworks like Hanami-rb that encourage the use of DDD principles.
But as I've mentioned here, although it is possible, there is a few downsides that may explain why the use of DDD is not so common in the "dynamic typed languages" word.
TYPO3 协会不久前开始致力于 PHP 框架的开发,重点是鼓励领域驱动设计。该框架现在是 Neos 项目的一部分,名为 流程。
他们在 2008 年推出的 alpha 版本(当我听到开发负责人的最后一次讲话时)看起来已经非常有前途了。不过到目前为止我还没有仔细观察过。
一段时间以来,我们公司一直以 DDD 思维方式进行 PHP 开发,但是到目前为止,我还没有想到对于动态语言有什么特别不同的地方。我只能说这对我们来说非常有用。
The TYPO3 Association began working on the development of a PHP framework with a strong focus on encouraging Domain Driven Design some time ago. That framework is now part of the Neos project and is called Flow.
The alpha version they presented back in 2008 (when I heard the last talk of the development head) looked already very promising. I haven't had a closer look so far though.
Our company has been doing PHP development with a DDD mindset for some time, however I didn't think about anything that would be specifically different for dynamic languages so far. I can only tell it works great for us.