I spent literal HOURS about a decade back trying to debug a program only to realise I had written a 'j' instead of an 'i' on a for loop but I couldn't tell as the font for both was so similar.
30+ years of tech, retired from an identity intelligence company, now part-time with an insurance broker.
Dev community mod - mostly light gardening & weeding out spam :)
I spent literal HOURS about a decade back trying to debug a program only to realise I had written a 'j' instead of an 'i' on a for loop but I couldn't tell as the font for both was so similar.
I've not used 'j' as a variable since then ;-)
Good ol' K&R has a lot to answer for..
I always used to go in the opposite direction for this reason. Need something after i? Go for h.
I just avoid 'i' entirely now. Go for something like x, y, z if required ;-)
No more single letter variable names! What is this, degree level mathematics?
Wait, are you all Haskell programmers?
If it's used as a counter in a for loop I don't see an issue with it.
Personally I learned to program with C (and LISP) and sometimes my Javascript still sinks back towards into the C.