this post was submitted on 02 Oct 2023
1532 points (98.4% liked)

Programmer Humor

32495 readers
664 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
[–] Anticorp@lemmy.ml 46 points 1 year ago (4 children)

I used to work with a guy who insisted his code was self explanatory, and then he'd nest loops 5 levels deep and give variables names like "thingyOne".

[–] Donkter@lemmy.world 35 points 1 year ago (2 children)

"thingyOne" is self explanatory, it's a thingy.

[–] CanadaPlus@lemmy.sdf.org 10 points 1 year ago (1 children)

Namely, the first one. Next you're going to ask about thingySixtyNine or thingyOneHundredTwentyTwo, I suppose?

[–] some_guy@lemmy.sdf.org 2 points 1 year ago (1 children)

I don't know why you guys are so dense. How pedantic do thingiesNumX need to be?! It's perfectly obvious!

[–] CanadaPlus@lemmy.sdf.org 2 points 1 year ago* (last edited 1 year ago) (1 children)

When people don't understand WTF you're talking about, it's just cause they're dumb. Communication is for the weak.

- Confucius

[–] SocialMediaRefugee@lemmy.ml 2 points 1 year ago

And turn signals are giving information to the enemy

[–] SocialMediaRefugee@lemmy.ml 2 points 1 year ago (1 children)

Could be worse, it could've been customer_ID, Customer_id, customer_Id...

[–] dankm@lemmy.ca 1 points 1 year ago* (last edited 1 year ago)

I wonder if there's a warning for that in Clang or GCC. That seems like something I'd want, but also want it to be 100% opt-in. Not even enabled with -Wall or -Wextra.

[–] fred@lemmy.ml 9 points 1 year ago (2 children)

That guy wasn't in charge, I hope? That would not have passed code review with me at least.

[–] Anticorp@lemmy.ml 6 points 1 year ago

Yup, he was in charge.

[–] ipkpjersi@lemmy.ml 6 points 1 year ago (1 children)

I find that those people usually are the ones in charge.

[–] Anticorp@lemmy.ml 5 points 1 year ago
[–] SocialMediaRefugee@lemmy.ml 3 points 1 year ago

I worked with a guy who was smart but “useless smart”. He was convinced that “code is self descriptive”, that is comments are not needed because the code speaks for itself. Well that is like saying DNA is self descriptive. Yes, I can sit there tracing the code, tracking the variables, etc or you could make a small effort to describe what is happening instead and save me a lot of time and risk missing subtle points.