← Graph

Form Object

concept 2 connections

Pattern for wrapping a web form's inputs and UI-level validations in a dedicated object, sitting just before service objects in the control flow. Krzywda stresses a recurring bug in thinking: form objects must NOT save data. Their sole job is input shape and UI validation; persistence belongs to the domain via commands.

category
pattern
about
Form Object concept
Form objects belong before service objects; must not save.
about
Form Object concept
Takeaway about the role of form objects.

Provenance

Read by
2 extractions