this post was submitted on 15 Oct 2023
303 points (95.2% liked)

Programmer Humor

31812 readers
541 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 10 months ago (1 children)

As someone who uses 'result' as a variable name in functions all the time, please tell me what you think is wrong with it?

If a function is called for example 'transformAtoB' it should be totally obvious what the variable will contain.

[–] [email protected] 1 points 10 months ago* (last edited 10 months ago)

It’s not necessarily bad, it just provides very little information.