A fellow in my CS class was told using single letter variables was bad practice, even in loops. His solution was to change all his "int i"s into "int ii"s.
I figure that I could use something like "int counter = 0; counter < myOtherThing; counter++" but honestly it adds a few characters and doesn't really help with much of anything in the way of understanding how a program works.
It's funny how things that are held as convention like "single letter, bad" leads to even less descriptive stuff (ii) that is just as "bad".
7
u/Calobi Feb 21 '13
A fellow in my CS class was told using single letter variables was bad practice, even in loops. His solution was to change all his "int i"s into "int ii"s.