An ongoing topic is the size of a class, function, or test. I think for each of us there is a size limit of some sort, but it varies. What I am clear on is that too big is too big.
For me, functions with more than 2-3 logical branches are too big.
Classes that are more than about 75 lines are too big.
Tests that are more than 10 lines are too big.
The size of things is a feedback mechanism we often don't pay close enough attention to. When we feel that pressure its time to split things up.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.