An IA assisted dive into domain from legacy code
This commit is contained in:
28
docs/deep-dive-any-domain.md
Normal file
28
docs/deep-dive-any-domain.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# <Any> Bundle Deep Dive
|
||||
|
||||
## Ubiquitous Language
|
||||
Understand business terms, list them.
|
||||
Propose adaptation if ambiguity.
|
||||
|
||||
## Domain Core
|
||||
Identify what carries business meaning.
|
||||
Need key entities. What is domain/ application/infra (logic from legacy code is not DDD)
|
||||
|
||||
Mainly in `src/.../[Entity, Model, Repository, Controller]/` paths
|
||||
|
||||
## Invariants / Concistency
|
||||
Understand what's always be true, list them as rule.
|
||||
|
||||
## Cross-context Dependencies
|
||||
Map coupling in contexts of bundles.
|
||||
|
||||
## DDD Slicing
|
||||
Define migration-safe target model.
|
||||
- Aggregates (target)
|
||||
- Value Objects (first candidates)
|
||||
- Domain services to extract
|
||||
- Repository interfaces (domain-facing)
|
||||
- Domain events (optional first)
|
||||
|
||||
## Reading Order
|
||||
Fast onboarding for understanding bundle
|
||||
Reference in New Issue
Block a user