I have a guideline that I call the "Rule of Hand". If a function takes up more lines than you cover with your hand it's probably too big.
I'm reminded of a post that I saw just the other day that was a very long paragraph. Probably about 4 times longer than this post. It was very difficult to read simply because it put too much information into a single spot.
The idea here is that small bits of information are much easier to read and understand.
One final comment is that this is a guideline and as a guideline there are always exceptions.
No comments:
Post a Comment