Simple Models

Description

Models should be as simple as is pragmatic.

Models may be directly responsible for validating themselves if their validations are self-contained. If their validations require reaching across domains (ex: checking Accounting) such a validation should be delegated to a Control.

Presentation of model data should be pushed to the serialization layer (serializers or GiraffeQL).

If updating a model is complicated or if several models must be updated together, use an Actor.

Technology Status at Wunder

Adopt.

Notes/Resources