Command Over Query

Back to Tell Don’t Ask

Prefer sending commands (telling objects to perform actions) over querying state and making decisions externally. This keeps decision logic close to the data it operates on and prevents anemic domain models.

property tell-dont-ask command-query