ITU-BDSA2024-GROUP30 / Chirp

The great Chirp repository for Group 30!
Other
1 stars 0 forks source link

(7.1.e) as DEVELOPERS we want to ENSURE METHODS THAT ARE EXPOSED IN OUR REPOSITORY ARE SEPERATED INTO COMMANDS AND QUERIES such that we HAVE LESS SIDE EFFECTS. #65

Open HenrijetteOest opened 1 month ago

HenrijetteOest commented 1 month ago

https://github.com/itu-bdsa/lecture_notes/blob/main/sessions/session_07/README_PROJECT.md#1e-command-query-separation

"Separate Commands from Queries. Commands are procedures that have side effects. Queries are functions that return data. Every method should be either a Command or a Query, but not both. Source: Mark Seemann "Code That Fits in Your Head"