663
you are viewing a single comment's thread
view the rest of the comments
[-] GhostlyPixel@lemmy.world 4 points 2 years ago* (last edited 2 years ago)

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 4 points 2 years ago

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

this post was submitted on 09 Jul 2023
663 points (100.0% liked)

Programmer Humor

37475 readers
151 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS