2017-03-23

[CQS] - Principio Command Query Separation

Command Query Separation (CQS), o en castellano separación de comandados y consultas, es un principio de diseño que fue acuñado por Bertrand Meyer en su libro Object Oriented Software Construction en el cual nos dice lo siguiente: A method should either Change the State of an Object [the COMMAND], or Return a Result [the QUERY], but Not Both [the SEPARATION]. Traduccion: Una operación debe ser un command o una query, pero nunca ambas.

Articulo aquí

No hay comentarios: