this post was submitted on 11 Jan 2026
357 points (93.0% liked)

Programmer Humor

28398 readers
949 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
you are viewing a single comment's thread
view the rest of the comments
[–] FishFace@piefed.social 7 points 1 day ago (1 children)

Keeping things that can be on one line to one line is a good reason to use short variable names where it won't be confusing. Writing "iteration" sounds absolutely perverse!

The thing is, everyone understands i and j. The reason calling variables hcv or iid is dumb is because noone knows what that means - quite a different situation.

[–] red_tomato@lemmy.world 5 points 1 day ago

Writing “iteration” sounds absolutely perverse!

I like it to make it clear when the for loop is about iterating lists and when it’s not. For example, the iterations in Monte Carlo algorithms doesn’t correspond to items in a list.