2 min read
Server Components Are the Composition Root
Why this site calls use cases directly from Server Components at build time, passes plain data down as props, and never fetches from a useEffect.
react-server-componentsclean-architecturenextjs
4 posts
2 min read
Why this site calls use cases directly from Server Components at build time, passes plain data down as props, and never fetches from a useEffect.
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.