News for hackers. Stuff that matters.
Re:Low Hanging Fruit of Programming Language Design by naasking on Thursday November 23, 2017 @02:25PM (#15767264)
> If it's not actually re-used then it's just making me jump around to see what's actually happening rather than reading straight through the code.

Firstly, you only actually create a function either when it is being reused, or because it's functionality is a logically separable responsibility and so you factor it out for understandability.

Either way, the function should also have a meaningful name describing its purpose so you don't have to jump around to understand what's actually happening.

There are no comments on this comment yet.