Move Logic to the Domain
Kind: technique
Layer: Domain Modeling
Record: lexicon:move-logic-to-the-domain
Canonical: Lexicon
A technique for moving business rules out of controllers, services and scripts into the domain objects they govern.
Listed in Lexicon terms, after Map to Domain Model and before Extract Use Case.
Category
Refactors
- Feature Envy
- Anemic Domain Model
- Transaction Script Sprawl
- Fat Controller
- Repository Dump
- Domain Model
- Clean Architecture