Most voted "ddd" questions
Domain-Driven Design (DDD) is a software development approach in which design is domain-driven, i.e., by the area of knowledge to which the software applies.
Learn more…122 questions
Sort by count of
-
127
votes4
answers42803
viewsWhat really is DDD and when does it apply?
When I first studied MVC in the book I talked a lot about DDD (Domain-Driven Design). From what I understood at the time, the idea of the DDD was simply to program software with a focus on…
-
25
votes2
answers8421
viewsWhat is Cross-Cutting and what is its relationship to Aspect Oriented Programming (AOP)?
What is Cross-Cutting and what is its relation to Aspect Oriented Programming (AOP)? And in a DDD architecture what is its function?
-
16
votes1
answer1022
viewsThe use of immutability
Immutability What are the advantages and benefits, when to use and why to use immutability in my projects? The complexity of the implementation x time, worth it? When I should not use immutability…
-
14
votes2
answers329
viewsDomain-Driven Design and Requirements Survey
When we use Domain-Driven Design an important part of the development process is to contact business experts to have a good understanding of the domain in question. This can be done, for example,…
oop software-architecture ddd software-project requirementsasked 9 years, 2 months ago SomeDeveloper 18,074 -
12
votes2
answers4565
viewsWhat are DDD aggregates and how to identify them?
In DDD there is the notion of aggregate. A definition I’ve seen around is as follows: Compounds of Entities or Objects of Values that are encapsulated in a single class. The Aggregate serves to…
-
12
votes1
answer3213
viewsDomain Driven Design, what is the difference between Domain Services, Infrastructure Services and Application Services
Is it correct to state that business rules should be written within the domain service? If yes, as a domain entity is not anemic, it also implements its business rules, then Domain Service would…
-
12
votes1
answer231
viewsWhen is it useful to separate state of behavior?
In object orientation there is the concept of encapsulation: meet in the same state class and the functions operating in that state. But there are situations where it is useful to separate state and…
oop software-engineering ddd software-project encapsulationasked 6 years, 5 months ago Piovezan 15,850 -
11
votes1
answer259
viewsSecurity in Domain driven design
On a DDD architecture, what layer does security (access control) implement? What would the structure look like?
dddasked 9 years, 9 months ago Rodrigo De Freitas Oliveira 109 -
11
votes3
answers483
viewsIs it Unviable to use Domain-Driven Design working alone?
I have studied a lot about DDD and I am with this doubt that has been bothering me since I started reading about "Strategic design". I work with programming since 2009 and most of the time I have…
-
11
votes2
answers325
viewsAre DDD and Entity Framework mutually exclusive?
I was exchanging comments with two users here at SOPT about DDD and Entity Framework. I said that DDD and Entity Framework are not mutually exclusive. Or are they? References: What is really the…
-
10
votes4
answers1233
viewsWhat is the difference between OO and DDD?
I read about Domain Driven Design, it seems to use the concepts of object orientation but is based more on business rules. Is there nothing else that actually differentiates OO from DDD? If it is…
-
10
votes2
answers8126
viewsWhat is the service layer in DDD?
Reading about Ddds I’ve heard about the service layer and I’m having a little doubt about that because from what I read a service can count business logic. Basically the definition I saw is this:…
-
10
votes3
answers271
viewsHow to avoid the use of setters in such cases?
In object orientation it is recommended to avoid the use of setters. The usual justification for this is that the logic that modifies the state of an object must be encapsulated in the object.…
-
10
votes4
answers1741
viewsHow to identify and when to use Value Object?
I am studying on Ddds from the books of Eric Evans and Vernon. During reading I came across the implementation of Value Object, I even understood the concept but could not abstract to a real…
-
8
votes3
answers2089
viewsHow to implement business rules or system rules using Domain Driven Design in C#?
I’m having doubts on how to separate business rules from system rules with the DDD. If I have for example a Class Usuario with id,nome,login,senha as properties. A domain rule would require a…
-
8
votes1
answer809
viewsSimple Injector + Uow + DDD + Multiple Contexts + Entity Framework
I need to know how to apply Ioc to two contexts. The scenario is as follows: I have a Layer called Core (allocates classes that I can reuse in other layers), where I put the interface of Idbcontext,…
-
7
votes2
answers1381
viewsWhat are subdomains and how do you identify subdomains in Ddds?
Studying DDD I found the idea of subdomain. From what I understand, a subdomain is a subset of the problem space that the application has to deal with, that is, a subset of the domain. From what I…
-
7
votes1
answer1373
viewsWhat is Feature Driven Development (FDD)?
I was researching about BDD, TDD and DDD and came across FDD (Feature Driven Development), after all: What is FDD? It has some relationship with BDD, TDD and DDD?…
-
7
votes1
answer170
viewsDoes DDD restrict code writing based on the client’s language?
My little knowledge about DDD has been subpoenaed and would like to know more about. The DDD restricts code writing based on the client’s language because of the ubiquitous language?
java c# software-engineering software-architecture dddasked 5 years, 9 months ago Thiago Cunha 1,356 -
6
votes2
answers466
viewsIs there a model to document the "Ubiquitous language" in the DDD?
I would like to know if there is a model to be followed for documentation of linguagem ubíqua or Ubiquitous language DDD. (ubiquitous language) Explaining better, it would be something that would…
-
6
votes1
answer627
viewsDomain Modeling - Payment Methods
I am modeling the sales part of my system and came across the following situation. I created a register of payment methods and payment method MONEY is standard and cannot be changed, deleted, etc. I…
-
6
votes1
answer111
viewsCan LINQ be considered business rule?
Sometimes I pull active objects with LINQ expression. Utilise filtering with LINQ can be considered a business rule and in a scenario such as DDD (Domain-Driven Design)? What is the best place to…
-
6
votes1
answer572
viewsDDD - What is a complex domain?
It is often said that DDD (Domain-driven Design) best applies to complex domains. What characterizes a complex domain? (please be more specific than "it has complex business rules"). What would be…
-
6
votes2
answers663
viewsWhere to create a Helpers layer?
I need to create a layer Helpers which will contain classes that will be made available for the entire project. These classes will contain functions such as calculations, wipers of string, anyway,…
-
5
votes2
answers145
viewsChild references and service Pattern
A widely used Pattern in DDD, is the service pattern. My question is, where is the logic for references "daughters"? For example, a use case, Pedido who owns Produtos public class Pedido { public…
-
5
votes1
answer68
viewsComplex type can have Entity Type property?
I have a class Address that is Complex Type. She can own a state property that’s a Entity Type? Class code: public class Endereco { ... public string Logradouro { get; set; } public Estado Estado {…
-
5
votes1
answer306
viewsDoes programming in English conflict with the construction of a ubiquitous language?
I have already found on the internet some arguments in favor of programming in English, instead of programming in Portuguese, and we even have a question questioning what would be the recommended…
-
5
votes1
answer772
viewsEnum as Object Value in DDD
After many searches on the internet, I came across many divergent opinions... In my application, I created the enum EstadoCivil {Casado = 1, Solteiro = 2, Divorciado = 3}. It can be classified as an…
-
5
votes1
answer128
viewsUse of Dataannotations in DDD projects
We are with a doubt that analyst raised, when I use Dataannotations in Viewmodel in projects that use DDD in the case have a Domain layer and in the case will not expand, this use would eliminate…
-
5
votes1
answer433
viewsAutomapper Entities Viewmodel
I am with a scenario where my context returns a query referring to two entities User and Cartaocreditousuario, as the following scenario below. During automapper action on my Viewmodel, is not…
-
5
votes1
answer473
viewsHow to correctly write a project vision document?
I am a developer who works alone and for some time questioned here on what documents would really be important to be produced at the start of the development process. Analyzing the accepted answer,…
software-architecture software-engineering ddd software-project project-managementasked 7 years, 11 months ago SomeDeveloper 18,074 -
5
votes1
answer270
viewsConsume entity repository directly from the application layer
I have a scenario where I need to search for a list of Active Employees with Entity Framework and display them on the screen (I need to convert to Dtos before displaying - what I do through the…
-
4
votes1
answer1163
viewsA delimited context only has domain model code?
Reading about delimited contexts in DDD I was in doubt if this is an idea that relates only to the domain model layer or if this is an idea that involves more parts of the application. I’ll explain…
-
4
votes2
answers516
viewsShould the Domain layer depend on Infrastructure?
I’m reading Evans' book on D.O.D., and I came across the following quote:: The Infra layer does not perform any action on the domain layer, because it is below it, because it is below it it should…
-
4
votes2
answers125
viewsDDD return aggregate entity of an AR
I am with the following doubt that no post I researched answered me. And I have researched a lot. I believe it is a simple question, because it is a common case. Imagine a blog post system. In this…
dddasked 9 years, 3 months ago Rodrigo Otavio 51 -
4
votes2
answers1043
viewsASP.NET Identity and mapping Many to Many (Fluent API)
I recently created a Solution with the DDD architecture, putting ASP.NET Identity in a transverse layer (CrossCutting), I saw that many people use Identity this way and decided to try it. However, I…
-
4
votes1
answer169
viewsAutomate DDD
There is a faster way to create a structure on Asp.net mvc using DDD (plugin or framework)? For example, whenever you create a new entity, you need to create many files in several projects and also…
-
4
votes1
answer142
viewsModifications to model and relational database
The requirements for the development of a system in general change over time. Several approaches to software development such as agile methods and Domain-Driven Design even encourage an iterative…
-
4
votes1
answer55
viewsHow to handle requirements that "mix" domain and interface?
Whenever I develop some software I try to leave the domain model without being influenced by issues relating to the other layers of the application like technologies in general and interface issues.…
-
4
votes2
answers178
viewsHow to update all records of all tables that have FK of a table
I have the following tables: CREATE TABLE Contrato ( [Id [int] NOT NULL IDENTITY, [Nome] [varchar](150), [Ativo] [bit] PRIMARY KEY ([Id]) ) CREATE TABLE [dbo].[ItemContrato] ( [Id] [int] NOT NULL…
-
4
votes1
answer94
viewsRepositories can manipulate and "transform" data?
I’m implementing two video service Apis (Youtube and Vimeo), and because it’s a layer of data, I thought it was ideal to create repositories for each one, with the API being the "source" of the…
-
3
votes2
answers398
viewsCreate modules using Unity (Ioc)
In an application using a multi-tier (n-layer) architecture, we have the infrastructure layer where we use an Ioc container to record the required dependencies. In a prototype I’m working on, I’m…
-
3
votes1
answer850
viewsDDD - What is the best option (Layer) to consume an external Webservice?
Pattern DDD. I need to consume one Webservice external, treat the return of that Webservice and return the result through the layer of Application. It would be interesting to consume this Webservice…
-
3
votes1
answer372
viewsDelimited Context and Modules/Packages
According to Domain Driven Design: Pactoes must tell a story, are part of the ubiquitous language, organize related concepts; The bounded context is the delimitation where the terms of omnipresent…
dddasked 9 years, 6 months ago Paulo Henrique 592 -
3
votes1
answer168
viewsConstruction of DDD object knowledge
I found on github an example project on Vaughn Vernon’s D.O.D. I haven’t had a chance to buy his book yet and read it all, but one thing I’m curious about is the fact that there are many different…
-
3
votes1
answer514
viewsEntity Methods in DDD architecture
Could you help me with a question. In DDD architecture what types of methods should I put in my Entity and which ones should I put in my Domain Service? I know that in my entity I must put at least…
-
3
votes1
answer283
views -
3
votes2
answers496
viewsBusiness rules should be in the Entity in the DDD enclosure
Following the DDD (Domain Driven Develop) methodology, my question is whether the Entity class should receive any business rule. Just imagine the situation: We have a Carfactory responsible for…
-
3
votes2
answers310
viewsProblem with Valueobject in the Entity framework
I’m having a hard time with a mapping and I’d like to know if it’s possible to do that: I have a Contact class with two fields that are Valueobject type "Phone", the fields are Phone and Mobile.…
-
3
votes2
answers88
viewsGood practices for data of product characteristics that may be different for each item
I own several products and each one has its own characteristics, some have weight, some do not, some have extra fee and others do not, etc. Is it good practice to create a new table of product…
modeling software-engineering software-architecture dddasked 5 years, 7 months ago Danilo Tiago Thai Santos 409