Has anyone come across a good document for VB.NET or C#.NET Coding Standards?
I’m curious because some of my colleagues developed custom coding standards for use within our company. Many of their ideas came from a number of external sources as well as their own experience. These documents cover things like object naming conventions, inline commenting requirements, etc.
One of the interesting things that we’ve implemented is the removal of any and all Hungarian notation. The biggest reason is that the IDE can provide the object type and scope with a quick mouse-over so prefixes are no longer needed. Instead, we try to name all objects (variables, classes, text boxes, etc) with good, descriptive names. For instance, strOrdDesc would become orderDescription. Also, we’ve done away with abbreviations. It was difficult for me to make the switch (old habits die hard), but now that I’ve done it I’m VERY glad! My code has never been cleaner, more readable, and more efficient!
Since we are mostly a VB shop at the moment, I have not ventured out into C# standards territory much. Although I have come across one document, in particular, that looks very well written: http://home.comcast.net/~lancehunt/CSharp_…g_Standards.pdf%5B/url%5D, by Lance Hunt.
Does anyone else have any thoughts or documents to share on this subject?