Domain Driven Design efforts in dynamic languages?

2.2k views Asked by At

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...

4

There are 4 answers

1
Martin R-L On BEST ANSWER

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.

0
fabriciorissetto On

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.

0
valignatev On

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

0
Sebastian K On

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.