- a pattern for programming I first learned about in π Clean Code
- means:
- do not have getters that also set something
- do not have setters that also get something
-
there is nuance here, for example with HTTP requests, which often do something and return something
- π Clean Code generally recommends throwing exceptions instead of returning error codes β which is an idea I need to explore more
-
it reminds me of the idea that ~ you can have side effects in a functional paradigm, just define system borders and contain them
Command Query Separation
This is a Frame note.