Ramesh’s Reviews > Domain-Driven Design Quickly > Status Update

Ramesh
Ramesh is on page 56 of 104
Factories are for creating new objects. They are more domain.
Repositories are for reconsitituting existing objects typically from the database they are linked to infrastructure.
Create a new Object using Factory and persist it with Repository
Aug 15, 2024 07:07AM
Domain-Driven Design Quickly

flag

Ramesh’s Previous Updates

Ramesh
Ramesh is on page 72 of 104
Bounded cotnexts, Specfication for etc logic, Continous integration
Aug 16, 2024 01:33AM
Domain-Driven Design Quickly


Ramesh
Ramesh is on page 62 of 104
Ensure constraints are converted to separate functions for example determining the number of books in a bookshelf is less than or equal to capacity shouldnt be a "if" statement in the addBook() but a separate function called isSpaceAvailable() that is called by the addBook()
Aug 15, 2024 09:02AM
Domain-Driven Design Quickly


Ramesh
Ramesh is on page 53 of 104
Repositories are extremely important which decouples the domain layer from the persistence layer. This will ensure the domain model doesnt become dumb
Aug 15, 2024 07:06AM
Domain-Driven Design Quickly


Ramesh
Ramesh is on page 50 of 104
How to create aggregates using Factories. If its complex then use Factories. An object typically should not build itself especially aggregates or roots of an aggregate.
Aug 15, 2024 05:43AM
Domain-Driven Design Quickly


Ramesh
Ramesh is on page 42 of 104
Entities have identity. Value Objects are immutable. If a behavior doesnt sit in an entity then move it into a service object. For example in reporting, a service can take the template object and the report object to create a HTML report. This behavior is not for the template or report object
Aug 14, 2024 11:10PM
Domain-Driven Design Quickly


Ramesh
Ramesh is on page 30 of 104
Aug 11, 2024 12:26AM
Domain-Driven Design Quickly


No comments have been added yet.