Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 66889

Domain-driven design (DDD) is an approach to develop software for complex needs by connecting the implementation to an evolving model.

0 votes
1 answer
132 views

Is this way of programming related to DDD?

In my new job, I'm getting a hard time understanding how they want to model things... they are using Domain Driven Design. For example, I come across this kind of code: $userRepo = new UserRepository( …
JorgeeFG's user avatar
  • 697
7 votes
2 answers
2k views

Can readmodel and writemodel inherit from Model for fields in DDD + CQRS?

I'm new to DDD + CQRS, and I'm working in a project that has this implemented, but I wonder why the guy duplicates the models. I understand, that one is for writing (commands) and one is for reading, …
JorgeeFG's user avatar
  • 697
20 votes
3 answers
8k views

How to handle post-validation errors in command (DDD + CQRS)

For example, when you submit a Register form, you have to check in the Domain Model (WriteModel in CQRS) that it is in a valid state (example, email address syntax, age, etc). Then you create a Comma …
JorgeeFG's user avatar
  • 697
1 vote
1 answer
2k views

What is the way to make an internal API

I have a Symfony project. I want to make this project API based, but also with a Web UI. So, I have 2 Bundles, ApplicationBundle and WebUiBundle. In Application Bundle, I have application, domain a …
JorgeeFG's user avatar
  • 697