this post was submitted on 07 May 2024
608 points (97.6% liked)

Programmer Humor

19623 readers
6 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

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

mathematician here, where is the joke?

[–] [email protected] 22 points 6 months ago (2 children)

Variable names should be "self defining" meaning you should be able to understand what its doing from the name. The name also shouldn't be too long. Combining those together makes it difficult to come up with an "elegant" name

[–] [email protected] 14 points 6 months ago (1 children)

I think they got the joke, they were just joking about how this is common in math :P

[–] [email protected] 5 points 6 months ago

The most atrocious variable names I ever encountered in code were as a research assistant for a math professor doing game theory simulations. Literally unreadable unless you had a copy of his paper on the subject to refer to

[–] [email protected] 5 points 6 months ago

tmp3 = tmp1 + tmp2 ; T.T

[–] [email protected] 7 points 6 months ago (1 children)

in the linux community it's really common to have applications like MPD, music player daemon, or MPC, music player client, and ncmpc, ncurses music player client, and ncmpcpp the aforementioned one with ++ tacked onto the end.

Cmus, which from what i can recall is literally "c music player"

etc....

[–] [email protected] 1 points 6 months ago (1 children)
[–] [email protected] 2 points 6 months ago

exercise left up to the developer!