Re:Ask HN: What is your best advice for a developer to write...
by eyelidlessness on Wednesday June 29, 2016 @06:29PM
(#12005302)
> Keep your functions to one or two pages.
When I encounter functions that large, where the body isn't almost entirely declarative, they tend to be doing way too much. A function longer than 10 lines is a smell, IMO.
When I encounter functions that large, where the body isn't almost entirely declarative, they tend to be doing way too much. A function longer than 10 lines is a smell, IMO.