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

Programmer Humor

32745 readers
195 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
[–] fred@lemmy.ml 7 points 1 year ago (1 children)
[–] Pxtl@lemmy.ca 7 points 1 year ago (2 children)

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 1 year 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.