re: Those silly mistakes we all make VIEW POST

FULL DISCUSSION
 

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 ;-)

 

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.

 
code of conduct - report abuse