2 min read
One Validator, One Left
How chaining domain rules through a single Validator — and returning exactly one Left per validation flow — keeps entity factories readable and error handling predictable.
dddvalidationclean-architecture
2 min read
How chaining domain rules through a single Validator — and returning exactly one Left per validation flow — keeps entity factories readable and error handling predictable.
2 min read
Not every field deserves its own class. A concrete rule for deciding when a value is rich enough to become a Value Object and when a validated primitive is the honest choice.
2 min read
Why this codebase never throws for business-rule errors, and how a two-value Either type makes failure a first-class citizen of the type system.