News for hackers. Stuff that matters.
Re:An overview of the science on function length by freetime2 on Monday August 31, 2020 @06:48PM (#24336649)
If a block of code is short (a few lines or less), and doesn't get reused in multiple places, I often prefer to add a clarifying comment rather than extracting the code out into a separate function. That way they reader doesn't need to go jumping around to see what the code does. And you can fit more information on a comment line than you can in aSuperDuperDescriptiveFunctionName.

There are no comments on this comment yet.