However, I disagree that errors result in domain events. In fact, if domain events are applying the game rules, a wrong move is just not allowed.
I understand your point of view about keeping track of what went wrong, but I'll rather use exception instead of domain events: what happen if I decide to make only wrong moves ? The domain event history will just be polluted with things prohibited by the rules. What is the domain value ? Doesn't keeping track of what went wrong look more like a need for infra logs ?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Easy and funny to read !
However, I disagree that errors result in domain events. In fact, if domain events are applying the game rules, a wrong move is just not allowed.
I understand your point of view about keeping track of what went wrong, but I'll rather use exception instead of domain events: what happen if I decide to make only wrong moves ? The domain event history will just be polluted with things prohibited by the rules. What is the domain value ? Doesn't keeping track of what went wrong look more like a need for infra logs ?