Variables names and comments
I hear so many conflicting things about good programming practice.
Sure, you should label variables something descriptive, but what constitutes a good description? For example, in my code I iterate through command line parameters using:
Code:
int arg;
for (arg=0;arg<argc; arg++)
...
Now, what should I call it? i_argument, consoleargument, from1toargc, commandlineoptionscounter?
And as to comments, I reckon the code should be easily readable. The best way to understand the code is to read it and figure out what it does. Good function names and variable names is a part of that.
Richard