Command-query separation
Meaning in software engineering, with examples
In software engineering, command-query separation means: A design principle that separates operations which change state from operations which return information without changing state.
In Turkish: komut-sorgu ayrımı
How it is used
Used in interface design. It does not by itself require separate databases or independently deployed services.
Example sentences
Applying command-query separation stopped the balance getter from silently creating an account.
A read operation should not hide a state-changing action under this principle.
We followed command-query separation while keeping both operations in the same module.
Separating responsibilities does not require separating deployment or storage.
Common collocations
- apply command-query separation
- command-query separation principle
Related terms
More terms: Architecture, Design Patterns and Graphics
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
