Skip to main content

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.

Filter by
Sorted by
Tagged with
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 ...
James Black's user avatar
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 ...
Gustaw Ohler's user avatar
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? ...
Nofenak's user avatar
  • 39
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 ...
Nofenak's user avatar
  • 39
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. ...
Andrius's user avatar
  • 119
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 ...
Minipami's user avatar
1 vote
0 answers
89 views

Specification pattern vs Always valid domain model [closed]

Let's say we have two aggregates: ...
szwarcus's user avatar
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 ...
user avatar
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 ...
Zymus's user avatar
  • 187
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: ...
galdin's user avatar
  • 201
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 ...
David Anderson's user avatar
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 ...
Jevgenij Nekrasov's user avatar
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 ...
Joseph Branch's user avatar
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/...
vanilla_milk's user avatar
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 ...
Hooman Bahreini's user avatar

15 30 50 per page