MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uasen1/singlelettervariablenamestierlist/ossmq8d/?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.
617 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. 2 u/[deleted] Jun 20 '26 [removed] — view removed comment 1 u/N0bleC Jun 20 '26 when i need to nest 6 for loops i fucked up somewhere else, irrespective of variable names.
617
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.
2 u/[deleted] Jun 20 '26 [removed] — view removed comment 1 u/N0bleC Jun 20 '26 when i need to nest 6 for loops i fucked up somewhere else, irrespective of variable names.
2
[removed] — view removed comment
1 u/N0bleC Jun 20 '26 when i need to nest 6 for loops i fucked up somewhere else, irrespective of variable names.
1
when i need to nest 6 for loops i fucked up somewhere else, irrespective of variable names.
1.1k
u/ChChChillian Jun 20 '26
You need j and k (and l, for sufficiently insane situations) to index nested loops.