this post was submitted on 09 Jul 2023
628 points (94.0% liked)

Programmer Humor

32571 readers
115 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
[–] GhostlyPixel@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (1 children)

I have had too many times where I have been confused trying to figure out a giant nested loop because the writer used i/j/k or x/y/z. It’s even worse when they confused when a particular bug is because they confused what their single letter variables were and used j somewhere instead of i and no one caught it because it is so easy to brush over. Name your stuff what it is, make your life easier, make others lives easier.

[–] LetThereBeDwight@lemmy.world 3 points 1 year ago

If you need three iterators, it's time for at least one function encapsulating that inner loop.