Ask HN: Functions: how long is too long?
https://news.ycombinator.com/item?id=1026916First I was going to ask how long you think a function should be, but there are lots of cases where using short functions is convenient.
Instead I'd like to ask what's the longest you'll let a function get in a given language before you break it up? Why?
I have very little experience coding commercially, but I try and never let any function get >1 screenfull, which is 50 lines for me.