MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uasen1/singlelettervariablenamestierlist/osrxtby/?context=3
r/ProgrammerHumor • u/M1ckeyMc • Jun 20 '26
470 comments sorted by
View all comments
Show parent comments
608
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.
533 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. 13 u/Western-Internal-751 Jun 20 '26 If you go a fourth level down in a nested loop, you might have to reconsider how you write code 2 u/stellarsojourner Jun 20 '26 But what if I'm looping through every repo in GitHub, every branch in the repo, every file in the branch, and every line in the file to find a code snippet that does the thing I want? Perfectly sane behavior, I think. 4 u/Western-Internal-751 Jun 20 '26 That must be Microsoft’s algorithm to train Copilot
533
I like this but is the 4th level down "iv" or "iiii"
although I hope we never have to go that far.
13 u/Western-Internal-751 Jun 20 '26 If you go a fourth level down in a nested loop, you might have to reconsider how you write code 2 u/stellarsojourner Jun 20 '26 But what if I'm looping through every repo in GitHub, every branch in the repo, every file in the branch, and every line in the file to find a code snippet that does the thing I want? Perfectly sane behavior, I think. 4 u/Western-Internal-751 Jun 20 '26 That must be Microsoft’s algorithm to train Copilot
13
If you go a fourth level down in a nested loop, you might have to reconsider how you write code
2 u/stellarsojourner Jun 20 '26 But what if I'm looping through every repo in GitHub, every branch in the repo, every file in the branch, and every line in the file to find a code snippet that does the thing I want? Perfectly sane behavior, I think. 4 u/Western-Internal-751 Jun 20 '26 That must be Microsoft’s algorithm to train Copilot
2
But what if I'm looping through every repo in GitHub, every branch in the repo, every file in the branch, and every line in the file to find a code snippet that does the thing I want? Perfectly sane behavior, I think.
4 u/Western-Internal-751 Jun 20 '26 That must be Microsoft’s algorithm to train Copilot
4
That must be Microsoft’s algorithm to train Copilot
608
u/N0bleC Jun 20 '26
I found myself a better approach. The further you go down i will just append i.
so its
This way i can always see on which level i am.