Classes Should Be Small ❗️
The first rule of classes is that they should be small .
The second rule of classes is that they should be smaller than that .
Our immediate question is always “How small❓ ”
With functions we measured size by counting physical lines .
With classes we use a different measure .
We count responsibilities .
#Cleancode #Class
Post #45
1.13K