308
submitted 2 years ago by qaz@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] fred@lemmy.ml 7 points 2 years ago
[-] Pxtl@lemmy.ca 7 points 2 years ago

Exactly. If it's a statically typed language and the function has a clear name? I know what type it is, I know what it's for, I'm good.

There are far worse sins, like intermediate variables or worse, public class members named "obj" or "data".

[-] qaz@lemmy.world 1 points 2 years ago

GitHub doesn’t show types. So if the value is given to another function you would have no way of knowing what type it is unless you read the file that other function is declared in.

this post was submitted on 15 Oct 2023
308 points (95.3% liked)

Programmer Humor

36864 readers
94 users here now

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

Rules:

founded 5 years ago
MODERATORS