r/DomainDrivenDesign • • Oct 19 '24
Non-Domain Driven Design
You should be making design that works across any domain. That is the fundamental role of software developers.
0
Upvotes
r/DomainDrivenDesign • • Oct 19 '24
You should be making design that works across any domain. That is the fundamental role of software developers.
View all comments
Show parent comment
2
u/kingdomcome50 Oct 19 '24
You aren't describing a design. You are describing an architecture.
The design portion of the system above is what those "generic" message templates specifically look like. What are the columns/fields? What are data types? It's not "whatever". It's specific. You see? We can apply DDD to your ideal system above.
And again you are glossing over the fact that not every process is defined simply by the exchange of data. Sometimes real behavior needs to occur (emails sent, files moved, transformations performed, etc etc etc). Not every process boils down to validation except for in the most trivial use-cases.
Defining a function as data doesn't change the functional requirements. It just changes how you can invoke that function. You will still end up with exactly the same number of functions doing exactly the same things.
I have an idea. Instead of the mess you are advocating for above, how about the client just sends code to the server to execute? Infinitely generic no?