English 中文(简体)
Domain Driven Design efforts in dynamic languages? [closed]
原标题:

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Are you aware of any DDD efforts in a dynamic language ?

Practical resources on DDD tend to decrease quite dramatically when straying from enterprise-oriented solutions (a google search exluding C#, .NET, ASP and Java yields 10 times less results), but i couldn t actually find a single example of a DDD implementation in a dynamic language...

最佳回答

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.

问题回答

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

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.

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.





相关问题
DDD - Returning entity in response to a service operation

I am new to domain driven development & have a simple question. If a service needs to generate some entity as a response to an operation then how should it be done? One of the ways is to inject ...

Domain Driven Design efforts in dynamic languages? [closed]

Are you aware of any DDD efforts in a dynamic language ? Practical resources on DDD tend to decrease quite dramatically when straying from enterprise-oriented solutions (a google search exluding C#, ....

Accessing domain objects in the view

If I don t want to expose the internal state of my Domain Objects, but I need to display them, I can think of three approaches. Which of these is the most "correct" (if any?). The "DTO/ViewModel ...

DDD screen cast question?

I wathced a screen cast on DDD by Greg Young the other day which spoke about persisting all state transitions of an object, instead of it s state when saved, then to load it "replay" all these ...

How to fluent-map this (using fluent nhibernate)?

I have two tables in my database "Styles" and "BannedStyles". They have a reference via the ItemNo. Now styles can be banned per store. So if style x is banned at store Y then its very possible that ...

热门标签