Re:Best Practices of Variable & Method Naming
by rgc4 on Saturday February 25, 2012 @12:33PM
(#3633363)
I agree that you should never use 1 character loop counters, but a lot of the lazy programmers out there don't agree. They've never had to do maintenance programming (or heaven forbid make old code actually work/bugfree/do something new) that has the following variable names:
i
ii
iii
j
ij
jj
ji
jjj
jij
jjj
One letter loop counters and their ilk are always a bad idea. But saying so angers so many people because they can't possibly ever be wrong.
i ii iii j ij jj ji jjj jij jjj
One letter loop counters and their ilk are always a bad idea. But saying so angers so many people because they can't possibly ever be wrong.