Skip to content

Appropriate Location for Validation Logic WIth the new Split Domain Layer #450

Answered by daveespo
bdJohnson72 asked this question in Q&A
Discussion options

You must be logged in to vote

I would add that adding a method like validate() to the Domain class is the preferred pattern .. and the Trigger just calls <domain>.validate() rather than having the Trigger need to know about checkEmail and any other future validations you might apply

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@JazzerAcrobat
Comment options

@daveespo
Comment options

@JazzerAcrobat
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bdJohnson72
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants