Questions tagged [ddd]
Domain driven design (abbreviated as DDD) is a design methodology that focuses on the domain. What is an object and what is an attribute is determined by their place in the real world.
46
questions
6
votes
3
answers
350
views
Implementing Generic Enumeration Classes in Domain Layer
I'm developing an ASP.NET Core application using .NET 8, following the Onion Architecture. In our domain model, we use Enumeration classes instead of traditional ...
2
votes
1
answer
105
views
Simple .NET Web App for managing family budget
I am creating some small project for my portfolio. It will be an app written in .NET and React but for now I've done backend part and I seek code review. I wanted it to be aligned with DDD principles ...
2
votes
2
answers
113
views
Domain Driven Desing aggregate for ticket booking
What do you think about this aggregator (DDD) for booking and cancelling tickets? Is it ok, or would you do it differently somehow?
...
1
vote
1
answer
84
views
DDD Aggregate for seat booking in cinema - is my model correct?
I created a DDD aggregate for booking seats in cinema. Is it corect or it should be model in other way?
Business rules:
1.Seat can be booked at least 1h before screening
2.Screening can has only 1 ...
1
vote
1
answer
360
views
Employee Attendance structure design
I am designing a solution to store employee day attendance, which can be recorded either as hours or as an interval within a day. The goal is to maintain a monthly attendance list for each employee.
...
2
votes
2
answers
547
views
DDD architecture pattern
I'm trying to understand the DDD architecture pattern. I wrote a simple project in which I tried to use DDD arch. Here are my doubts after implementing it:
Does it make sense to use an ORM for a DDD ...
1
vote
0
answers
89
views
Specification pattern vs Always valid domain model [closed]
Let's say we have two aggregates:
...
1
vote
2
answers
168
views
DDD: interaction between 2 objects in a RPG-game
Context
PlayerHouse is a place where the Player (the game character) can refill its health, store its inventory, etc. like in a RPG-game. The user can upgrade it for example to refill player's health ...
2
votes
1
answer
605
views
A Stateless Immutable Event-Driven DDD Pattern in Kotlin
I've been interested in making fully repeatable, reproducible game states. This led me into the world of DDD, and specifically, the concept of Aggregates + Event Sourcing (although that's not ...
6
votes
3
answers
4k
views
Representing a property with a non-nullable getter & a nullable setter
I have a class as follows, where I want the user of the class to know that setting the Slug property to null is supported, and its getter will still return a valid value:
...
4
votes
0
answers
119
views
Is there a better way to unit test a repository for a large aggregate root?
In our project we use domain-driven design and our customer aggregate root is large. The unit tests for the aggregate root itself are simple (~50 or so tests), but I am struggling with the repository ...
1
vote
0
answers
113
views
DDD design: Tracking price calculation progress and fallback price calculation
I am pretty new to DDD, so any help/ideas will be appreciated. I will explain my initial design and problem below.
The user can ask the system to generate products proposal, proposal is basically ...
2
votes
1
answer
280
views
Simple REST web service
I am a young computer science student programming mainly in Java.
I wrote a simple RESTful web service using Spring Boot Framework and the DDD architecture pattern. The project is a library ...
3
votes
1
answer
233
views
DDD - Interaction between 2 entities
I've been taking a crack at Domain Driven Design, SOLID principles, and unit tests to write more maintainable code in the future.
Though I tend to run into the same issue: While I have many classes/...
3
votes
1
answer
201
views
Grouping low-level services together into a high-level service
I am working on an e-commerce website. What I need to do is to save an advertisement. The ad has some properties and some photos... properties should be save to DB and photos should be saved to file ...