DDD Hibbert
DDD Hibbert
Design
Words of Wisdom
A Big Ball of Mud is a haphazardly structured,
sprawling, sloppy, duct-tape-and baling-wire,
spaghetti-code jungle.
- Brian Foote and Joseph Yoder
It doesnt take a lot of skill to get a program to
work. The skill comes in when you have to keep
it working.
Even most those fancy Applications of OOP are actually built with
the same mindset. And then we see people complaining about the
programming is hard, and Entity is huge and scary to modify.
CRUD approach is all about get some data from forms (UI), do
minor processing and save it to Database again.
You only need to create the required data structures (Data models)
and that is it.
Need of DDD
Data Driven Design Approach works on the long term, only if the
Application stays true to its nature. i.e. it changes very little and
changes are still about data moved from form to db and back.
Ubiquitious Language:
Entity:
An Object defined primarily by its Identity and have state
is called an ENTITY.
ENTITIES have life cycles that can change their form and
content.
ENTITIES are things with in the model and Uniquely
identifiable.
DDD Value Objects
Value Objects:
Aggregate:
Bounded Contexts:
Context Maps:
Domain Services :
Repositories :