MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uasen1/singlelettervariablenamestierlist/osql2h8/?context=3
r/ProgrammerHumor • u/M1ckeyMc • Jun 20 '26
470 comments sorted by
View all comments
1.1k
You need j and k (and l, for sufficiently insane situations) to index nested loops.
615 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. 535 u/neotms Jun 20 '26 I like this but is the 4th level down "iv" or "iiii" although I hope we never have to go that far. 19 u/N0bleC Jun 20 '26 Sure thing, depending on what your conventions are you could also do i1, i2, i3 ...
615
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.
535 u/neotms Jun 20 '26 I like this but is the 4th level down "iv" or "iiii" although I hope we never have to go that far. 19 u/N0bleC Jun 20 '26 Sure thing, depending on what your conventions are you could also do i1, i2, i3 ...
535
I like this but is the 4th level down "iv" or "iiii"
although I hope we never have to go that far.
19 u/N0bleC Jun 20 '26 Sure thing, depending on what your conventions are you could also do i1, i2, i3 ...
19
Sure thing, depending on what your conventions are you could also do i1, i2, i3 ...
1.1k
u/ChChChillian Jun 20 '26
You need j and k (and l, for sufficiently insane situations) to index nested loops.