← Graph

Elevate Validations Into The Domain

takeaway 2 connections

Validation is not a persistence concern — it is part of the core domain model. Pulling validations out of ActiveRecord and into a service makes them first-class citizens and enables accepting bad input, recording it as an event, and handling it with tailored read-model views per audience.

type
insight
takeaway Elevate Validations Into The Domain
about
Elevating validations into services is what enables the embrace-the-evented-model UI pattern.
takeaway Elevate Validations Into The Domain
from_talk
Extracted from the embrace-the-evented-model section on validations.

Provenance

Read by
1 extraction