A function can be too long or too short


A function can be too long or too short.

Too long: Doesn't fit in your head. Does many unrelated things.
Too short: The abstraction costs more than it's worth.

My experience:
I often say "Ouch, this func needs split up."
I rarely say "Ouch, this func is too short."

View original on X