Wine, grapes and DDD

Posted on January 07, 2019 · 2 mins read · tagged with: #DDD

A while ago I sealed up a few bottles of home made wine (created only for oenology purposes ofc.) Somehow, maybe because of winter’s time, my memory resurfaced these moments and connected them with something I’m working now currently, which is connected with Domain Driven Design. Is there any way the process of producing wine and DDD could be connected? Let’s take a look.

Just grapes

Before smashing fruits, I had them cleaned and separated from the bunches. There were just soaked in water and waiting. There was no connections visible.


They have color

Stating that all the grapes are the same would be a huge misunderstanding, especially, if you use different kinds of grapes. Clearly, they could be grouped by some criteria, like color, shape, sweetness (nope, I don’t bite every single grape :P). This would create a kind of categorization of the grapes.


This might look like this

The last but not least, is imaging what bunches could look like. Again, seeing through the criteria lenses we can guess or spend more time on investigating what kind of model might be applied to make sense out of it. It’s worth to notice that grapes of the same kind may come from the same tree, but different bunches, so there’s no reason to try to imagine extremely large bunches. Match them by criteria but do not load everything to single thin branch. It wouldn’t be able to hold it up!


This is the model

At the end, the final picture represents a model. Something that might be true, something that might be summarized as “this is how I think it works”.

In this example I inverted the process of making wine, which hopefully nobody will try to apply. Still, I think it is an interesting metaphor for finding and distilling (pun intended) your models.


So... How much wine did you drink? ;)

by Dariusz Lenartowicz (@dariusz_lenart) at 2019-01-07 08:25:53 +0000

You mean: analyzed. Not that much :-)

by Szymon Kulec 'Scooletz' at 2019-01-07 10:38:39 +0000

[…] Wine, grapes and DDD (Szymon Kulec) […]

by Dew Drop - January 8, 2019 (#2874) - Morning Dew at 2019-01-08 12:04:14 +0000