TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Where Do I Put My Business Rules and Validation?

2 pointsby jamesmhabout 6 years ago

1 comment

smushabout 6 years ago
Short version: Use Domain Driven Design. Business Rules &#x2F; Validation go into the Value Objects (a name, an address, etc.) that make up an entity (a unique customer, business account, etc.). The article defines each term in the previous sentence and gives a sample as to how to perform it.<p>For a Functional Programming perspective or if you are a F# user, the Pragmatic Bookshelf book &quot;Domain Modeling Made Functional&quot; covers DDD architecture from a functional perspective and was an informative read.