3 ms·
> I find it easier to keep in my head when methods are short I think that's true if "short" is measured in terms of internal complexity. I think each function
by zmmmmm 8y ago
> I find it easier to keep in my head when methods are short
I think that's true if "short" is measured in terms of internal complexity. I think each function should try to manage a small bite size amount of complexity that represents a reasonable level of cognitive load for a brand new person to reverse engineer. It could be quite a lot of lines of code if they are very simple ones, or it could be a one liner if it's super complex / obtuse.
- nerdponx 8y agoGood point. Yes, I meant logically short. Maybe logically compact is more apt.