News for hackers. Stuff that matters.
Re:Best Practices of Variable & Method Naming by kstenerud on Saturday February 25, 2012 @10:41AM (#3633140)
Or, if you want to be sure that a search/replace of a name won't go awry, you could use names such as customerIdx, nodeIdx, accountIdx. It also helps keep things clear in the few cases where you find yourself with nested iterations (so that you don't accidentally call customers[j] when it should have been customers[i]).

There are no comments on this comment yet.