3 ms·
I always interpreted the SRP in terms of how well one can describe the responsibility of the class. If one has to write "This class does x and y and sometimes
by strictfp 12y ago
I always interpreted the SRP in terms of how well one can describe the responsibility of the class.
If one has to write "This class does x and y and sometimes z if w", it's got several responsibilities.
If one can write "This class does x", it's OK.
X can then be arbitrarily complex, so code size has nothing to do with it in my world.