this post was submitted on 01 Mar 2025
195 points (93.0% liked)

Programmer Humor

20894 readers
1212 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 2 years ago
MODERATORS
 

Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain ๐Ÿ˜…

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Hammerheart 19 points 2 days ago (3 children)

short variable names, and the only vowel is 'i'

[โ€“] logging_strict 1 points 7 hours ago* (last edited 7 hours ago)
from multiprocessing import Lock
l = Lock()

flake8 .... way too ambiguous

[โ€“] [email protected] 11 points 2 days ago
[โ€“] [email protected] 8 points 2 days ago

I inherited an old Japanese codebase. Tons of stuff was just single-letter variables. Apparently, this used to be at least somewhat common here. I spent a lot of time just updating code to replace vars with something meaningful (and found bonus bugs due to improper scoping with same var names as a bonus). Didn't have an IDE that would easily do it for me at the time and running something like sed felt too risky.