Command-Query Separation (CQS) Principle

Link to original

Command-Query Responsibility Segregation (CQRS) Principle

  • is Command-Query Separation on a larger scale
  • originated with Bertrand Meyer’s Command and Query Separation Principle
  • If you have a return value you cannot mutate the state. If you mutate the state your return type must be void
Link to original