News for hackers. Stuff that matters.
Re:A Guide to Naming Variables by BurningFrog on Friday May 13, 2016 @12:32PM (#11691361)
What the function is returning should be clear from it's name.

Repeating that in the return value variable is then redundant.

I like naming my result variables `result`. It makes it clear when you first see it what it's for, without having to read the function to the end.

There are no comments on this comment yet.