DEV Community

Discussion on: Stop waving the wand of magic numbers

 
mortoray profile image
edA‑qa mort‑ora‑y

I don't think I've seen it before. I might have blocked out the memory. If I need a generic variable I just use i, or j, but I prefer giving them better names when possible, like row, or x, or item_ndx.

Thread Thread
 
drbearhands profile image
DrBearhands

Oh, ii is often used rather than i for iterators because it's easier to text search. Then again if you have to search for the iterator you might be doing something wrong.

Thread Thread
 
mortoray profile image
edA‑qa mort‑ora‑y

I don't think I've ever searched for an iterator variable.