command–query separation

principle that every method should either be a command that performs an action, or a query that returns data to the caller, but not both; asking a question should not change the answer
Thing programming_principle Q3954590
Press Enter · cited answer in seconds

command–query separation

Summary

command–query separation is a programming principle[1]. It draws 61 Wikipedia views per month (programming_principle category, ranking #10 of 13).[2]

Key Facts

  • command–query separation is credited with the discovery of Bertrand Meyer[3].
  • command–query separation's instance of is recorded as programming principle[4].
  • command–query separation's Freebase ID is recorded as /m/01qp5j[5].
  • command–query separation's Microsoft Academic ID is recorded as 207044243[6].

Body

Works and Contributions

command–query separation is credited with the discovery of Bertrand Meyer[3].

Why It Matters

command–query separation draws 61 Wikipedia views per month (programming_principle category, ranking #10 of 13).[2] It has Wikipedia articles in 7 language editions, a strong signal of global cultural recognition.[7]

📑 Cite this page

Use these citations when quoting this entity in research, articles, AI prompts, or wherever provenance matters. We aggregate Wikidata + Wikipedia + authoritative open-data sources; the stitched, scored, cross-referenced view is what 4ort.xyz contributes.

APA 4ort.xyz Knowledge Graph. (2026). command–query separation. Retrieved May 3, 2026, from https://4ort.xyz/entity/command-query-separation
MLA “command–query separation.” 4ort.xyz Knowledge Graph, 4ort.xyz, 3 May. 2026, https://4ort.xyz/entity/command-query-separation.
BibTeX @misc{4ortxyz_command-query-separation_2026, author = {{4ort.xyz Knowledge Graph}}, title = {{command–query separation}}, year = {2026}, url = {https://4ort.xyz/entity/command-query-separation}, note = {Accessed: 2026-05-03}}
LLM prompt According to 4ort.xyz Knowledge Graph (aggregator of Wikidata, Wikipedia, and authoritative open-data sources): command–query separation — https://4ort.xyz/entity/command-query-separation (retrieved 2026-05-03)

Canonical URL: https://4ort.xyz/entity/command-query-separation · Last refreshed: