Closed skylee03 closed 1 year ago
I don't understand the numbered list that way.
If you read the earlier part of the article, it talks about a family of functions in the context of serving the role and changing to serve the role. So I understand it as group functions (to a class) such that each class has a responsibility.
However, your question is valid. Here is a reasonable explanation: https://stackoverflow.com/questions/56893910/what-is-the-scope-of-the-single-responsibility-principle/57085753#57085753
For the question:
The standard answer is:
However, in our supplementary reading, the author reasoned about SRP and came to the following conclusion:
The author seems to believe that the single responsibility of functions (i.e., methods) is one of the necessary conditions to ensure SRP is followed. I am wondering that, in other words, does SRP require single responsibility for methods?