2022 Developer Survey is open! Take survey.

New answers tagged

2 votes

Side effect as a common object seems like a bad pattern

Giving discounts in an auction sounds counter intuitive and potentially illegal, but generally the approach for "modifiers to an order" would be to define the logic for each discount type in ...
user avatar
  • 64.1k
2 votes
Accepted

Referencing another ARs value object

No - as long as the value object is immutable widely shared references to it are not a problem. This is because taking a reference to an immutable object is effectively the same as taking a copy of it....
user avatar
  • 2,054
3 votes

Domain Driven Design: ElasticSearch and Postgres together

Let me set the stage. A microservice is a self-contained(!) application that handles a single(~) small(~) business capability of a bigger system. DDD is an idea that we shouldn't concentrate on ...
user avatar
1 vote

Alternatives to DDD - Complicated and cumbersome business logic/process

There is no architecture, design pattern or development philosophy that fixes this. Domain-driven development was conceived precisely for complex applications. Eric Evan's book "Domain-Driven ...
user avatar
2 votes

The difference between Repository and DAO

The critical difference between the Repository pattern and the Data Access Object pattern is that the former deals with domain concepts, while the latter deals with technology-specific implementation ...
user avatar
0 votes

How to model Product and Material relationship using DDD

DDD is a technique for solving complex business problems. When creating a domain model, forget about the relational database. Start with drawing a model on a whiteboard together with a domain expert. ...
user avatar
  • 3,458
0 votes

How to model Product and Material relationship using DDD

How my repository will kow a ProductMaterial was removed/updated from a product By executing a database query, or employing some form of change tracking. If you need to make sure a database response ...
user avatar
0 votes

How to model Product and Material relationship using DDD

Let's answer the question parts one by one. How my repository will know a ProductMaterial was removed/updated from Product? The Repository is responsible for persisting an Entity or a Value Object; ...
user avatar
2 votes

Domain Driven Design and Systems Analysts

This is a broader question not specifically related to either DDD nor Systems Analysts. It's pretty easy to see and even test that all layers of communication will distort, compress, remove signal, ...
user avatar

Top 50 recent answers are included