(e-mail address removed) (jbruno4000) wrote
This conversation has truly exausted itself!
Yes, it was doomed from the start. It isn't quite a troll, but the
topic is one that's guaranteed to generate more heat than light;
not unlike a message asking what's the best computer language, or
why we don't all boycott Microsoft.
For the record: in my opinion, there are some issues where it's much
more important to have SOME standard, than anything that standard could
possibly say. When you're working with a group of programmers, you
should use the same indentation style, the same tab stops (or else only
use spaces), the same naming conventions, and so on. If your personal
code stands out in some way (other than comments with your name on it),
you're making maintenance much more difficult than it needs to be.
That means doing things even if you think they're stupid. If everyone
else uses "m_" in front of all member variables, you should do it too
even if you don't think it clarifies anything. On the other hand, if
nobody else does it you should refrain as well. If you really think
that everyone ought to be using "m_" in front of member variables,
propose it at a team meeting -- be prepared to explain why it's worth
fixing every line of code already written. (Or bring it up at the
beginning of the next project, before any code is written.)
The one exception to this philosophy is comments. AFAIK, nobody has ever
received negative feedback on their code because the comments were too
clear. My personal rule of thumb is to put a comment on almost EVERY
line of code, explaining why it's there (and assuming that all readers
already understand WHAT it does, so there's no point explaining it:
totProc += 17; // Add 17 to totProc
That comment does nothing useful, but
totProc += 17; // Update running count of orders processed
does, though you should now explain why 17 is the right value.)