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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 user 199871

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

4
votes
Project.addDocument is the right approach. The guiding principle is the definition of an aggregate. AGGREGATE A cluster of associated objects that are treated as a unit for the purpose of data …
answered Jan 29 '16 by VoiceOfUnreason
3
votes
I'm a bit confused with regards to the repository Not your fault. It may help to review chapter six of the blue book. Evans writes The REPOSITORY retrieves the requested object, encapsulati …
answered May 25 '18 by VoiceOfUnreason
9
votes
But does it mean that the entity is the same thing than a row in my database ? No, absolutely not. Your database might not even be a database; remember that a REPOSITORY provides "the illusion o …
answered Dec 14 '16 by VoiceOfUnreason
3
votes
Or is it more practical to not model them at all with the type system and keep them as BigDecimal? That depends: how to you want to mitigate the errors that arise when somebody tries to add a Mo …
answered Apr 15 by VoiceOfUnreason
4
votes
The item I am struggling with is how to design the domain layer without ORM since ORM would handle fetching items lazy or eager depending on how mappings are configured. Typically, the domain co …
answered May 4 '17 by VoiceOfUnreason
1
vote
in our problem domain, we have a business rule saying that a Customer can only have one undelivered order at a time. Before you go too deep down that rabbit hole, you should review Greg Young's d …
answered Aug 15 '17 by VoiceOfUnreason
4
votes
Creation patterns are weird.... In DDD, is it okay if creation of one AR forces creation of another AR? "It depends", which is part of the problem. Aggregates, as described Evan's in the blue b …
answered Jan 22 '18 by VoiceOfUnreason
0
votes
In many cases, you want "the" primary key to be part of the domain model. The context for this is race conditions when you have concurrent attempts to create the same entity. To prevent lost update …
answered Jan 9 by VoiceOfUnreason
1
vote
Off the top 1) If you are having trouble modeling your domain, CQRS is unlikely to help. 2) Your "unique email constraint" is a common example of Set Validation. Trying to ensure uniqueness of an e …
answered Nov 9 '18 by VoiceOfUnreason
5
votes
DDD only really useful for batch processing? No, domain driven design is useful for modeling complex domains. Your primary reference is "the blue book" by Eric Evans. If you happen to have a co …
answered May 22 '18 by VoiceOfUnreason
4
votes
What does "just CRUD" mean? Just CRUD means that your application doesn't have any authority of its own; that it is simply collecting and repeating information that is passed in to it. This is t …
answered Jul 8 '17 by VoiceOfUnreason
1
vote
For example, I have a domain model "Order" that has a method "IsValid". To determine whether an order is valid, a database read must be performed. That's almost certainly not right; in that you a …
answered Mar 24 '17 by VoiceOfUnreason
4
votes
High level summary: you've got a state machine hiding here; make it explicit. Articulate each of the intermediate and terminal states, and define the edges between them, and make sure that those alig …
answered Feb 27 '16 by VoiceOfUnreason
0
votes
But what if we want this phone number to be unique? An important question is "what is it worth to the business?" How expensive are errors here? Will a best effort approximation keep you under …
answered Feb 5 by VoiceOfUnreason
2
votes
I have an AR and I can't figure out the best way to create/edit some of the complex aggregates contained in it. Caution: your spelling is off. AR don't contain aggregates, the naming is the oth …
answered Oct 24 '17 by VoiceOfUnreason

15 30 50 per page