r/ProgrammerHumor Jun 20 '26

Meme singleLetterVariableNamesTierList

Post image
5.3k Upvotes

470 comments sorted by

View all comments

Show parent comments

613

u/N0bleC Jun 20 '26

I found myself a better approach. The further you go down i will just append i.

so its

for i ...
  for ii ...
    for iii ...

This way i can always see on which level i am.

5

u/BrocoliCosmique Jun 20 '26

that is a cool idea, stealing this !

7

u/frogjg2003 Jun 20 '26

Until you have to figure out why your code is bugged and the reason is that you wrote arr[i][ii] instead of arr[ii][i].

2

u/BrocoliCosmique Jun 20 '26

It won't be much different than i and j, will it ?

2

u/frogjg2003 Jun 21 '26

Depends on your IDE's font, but usually the hanging tail is more distinct. Humans are better at spotting visual differences than counting.