Skip to main content

Questions tagged [domain-model]

A domain model is composed of the objects, behavior, relationships, and attributes that make up the industry that is the focus of development.

0 votes
2 answers
204 views

I’m refactoring a microservice project where multiple services share the same domain objects. Over time, these objects have diverged across services, causing inconsistencies. To solve this, I plan to ...
Ryley38's user avatar
  • 111
1 vote
2 answers
158 views

I’m trying to understand bounded contexts by trying to apply them to an example HR application. According to a book called Patterns, Principles, and Practices of Domain-Driven Design (PPPDDD), context ...
EMN's user avatar
  • 795
2 votes
3 answers
333 views

The company I'm working at has strict policies that insist that all business logic is contained in Domain Models as part of DDD. I can see how this approach could work well for something like a ...
Mog0's user avatar
  • 147
3 votes
3 answers
256 views

I'm working on a DDD-based system and was researching the best way to handle domain services and keep business logic consistent. During my research, I came across this insightful quote from Steve ...
Mr_Sure21's user avatar
-1 votes
1 answer
78 views

There is a case management application. New requirements want to add statuses to cases. The case will go through a series of statuses until completion. Each case belongs to a case type. There are many ...
EMN's user avatar
  • 795
1 vote
2 answers
289 views

I'm trying to refine my domain model for the internationalization feature, I wanted to get your input on the best approach to structuring Culture and Localization entities following Domain-Driven ...
Hélder's user avatar
  • 121
1 vote
1 answer
133 views

I have an entity called User, and it has a method to change the user's email address. I'm using a strongly typed object for representing the email address. public class User: BaseEntity { // Some ...
Zombies are Real's user avatar
1 vote
1 answer
86 views

Should one enforce reasonable values when modeling one's domain? Here's an example: Assume that we have a scheduling application that schedules visits for people who require assistance and normally ...
Tomas Vestelind's user avatar
0 votes
4 answers
423 views

When domain modelling, should a valid constraint - or "natural" constraint - be modelled, even if there are no current business processes which rely on the constraint being asserted. As an ...
Daniel Vernall's user avatar
-2 votes
2 answers
473 views

According to Eric's definition of entities: "An object that is not fundamentally defined by its attributes, but rather by a thread of continuity and identity" Does that mean apart from all ...
Varun Raj's user avatar
  • 115
0 votes
1 answer
145 views

Consider Chess as an example. Say, we have a lot of domain objects that are alike, in this case chess pieces. I have two proposes to implementing the behaviour of chess pieces. Both uses the following ...
Daniel Birn's user avatar
1 vote
2 answers
797 views

I have a specific domain entity that has a given type and some attributes. Based on the type, it can have another set of type-depending attributes. Normally, I would create a class for each type and ...
Fischer Ludrian's user avatar
2 votes
3 answers
359 views

I know there are some posts talk about primitive obsession : When is primitive obsession not a code smell?, Is "avoid the yo-yo problem" a valid reason to allow the "primitive obsession&...
wcminipgasker2023's user avatar
2 votes
1 answer
714 views

When talking about having a rich domain model successfully, in real applications, it needs to, somehow, access some abstraction of complex functionality (instead of being a row state calculator the ...
Vitor Figueredo Marques's user avatar
1 vote
1 answer
662 views

I have the following requirements : A player in an FPS Shooter game has health points, where he can take damage and regain health. One of the ways to regain health is by using a Health Booster that ...
Br4infreze's user avatar

15 30 50 per page
1
2 3 4 5
23