I stumbled across an article from
net.tutsplus.com[
^] that was dated a few weeks ago about naming conventions for beginners.
1. Variable names that begin with a capital letter mean that they are a class.
2. Prefixing a variable name with the underscore indicates that the variable is private or protected.
3. ALL CAPS indicate a constant
4. Prefixing a bool variable with "is" (found in anther MS website or programming blog)
5. There are several others that I won't bother to list
I think this is great and it is obvious that I am a beginner... Now, I realize that not everyone follows the rules or guidelines and companies have different coding standards but...
Being a new developer and since there is no one around in the company that I work to enlighten me. I hope someone here can. I am very interested in maintaining some sort of coding standard that would be understood by outside parties if the need should ever arise.
I notice in windows programming, specifically with C#, that sometimes I see code that adheres to the items above and other times it does not.
So... should I name all of my classes with the first character capitalized and use the underscore to denote a private or protected variable? Do I rename all of the controls on a form to follow this practice even though VS2010 does not do this?
Is there a publication of some sort that has become a standard guideline that explains the why and hows of this?
Thanks
Jeff