
The CQS (Command Query Separation) Design Principle
When writing code, clarity and maintainability are everything. One of the most powerful design principles you can apply to achieve this is CQS - Command Query Separation.
What is CQS?
CQS (Command Query Separation) means:
A function should either do something (a Command) or answer something (a Query) - never