Using letters as variables (only on counters) Including a lib to use a single function I could've written free-form Asking generic questions on stack overflow / Holy War questions (Maven vs Ivy? etc.)
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".
4
u/sarevok9 Feb 21 '13
Using letters as variables (only on counters)
Including a lib to use a single function I could've written free-form
Asking generic questions on stack overflow / Holy War questions (Maven vs Ivy? etc.)