404
Choose your path! (feddit.org)
you are viewing a single comment's thread
view the rest of the comments
[-] FishFace@piefed.social 7 points 2 months ago

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 2 months 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.

this post was submitted on 11 Jan 2026
404 points (92.1% liked)

Programmer Humor

30459 readers
2401 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