3 ms·
> Mainly, if every class has its own table, and database operations are all so similar, is the software produced not only a collection of very simple mechanical
by motorest 2y ago
> Mainly, if every class has its own table, and database operations are all so similar, is the software produced not only a collection of very simple mechanical operations? How could there be any value in that?
DDD does not have the concept of a table or database, let alone requires it. There's some degree of confusion expressed in your comment.
In a somewhat simplistic explanation, Domain-Driven design focuses on creating a model of the application domain, and with that define the necessary and sufficient operations that implement your requirements. All your operations are implemented in terms of your domain model. The tricky part is putting together a domain model that's consistent and doesn't allow the system to generate invalid data or be left in an inconsistent state. This leads us to the concept of root entities, and on top of them use aggregates to express transactions that involve multiple entities and values.
- onli 2y agoNot talking about DDD here, but the linked article describes this as his alternative approach.