4 ms·
I use 'i' for 'index' / 'iterator', j because it follows i, and k because it follows j. The first time I wrote a double-deep loop, the only ones I could recall
by Groxx 16y ago
I use 'i' for 'index' / 'iterator', j because it follows i, and k because it follows j. The first time I wrote a double-deep loop, the only ones I could recall having seen had used x and y, because they mapped to x,y coordinates.
So why don't I use x and y where it's not coordinate based? Weaker fingers. 'X' is inherently much harder to hit than 'i', 'i' serves as a mnemonic as it's usually referring to the index being accessed, and 'y' takes a larger movement than 'j'.