C
CMM
Early in the lifecycle of the guidelines (way back in 2002 or so) they did
espouse camelCase for private variable.... but then decided to concentrate
on the PUBLIC object model of classes rather than enter into the fray of all
the arguments going back and forth in the community.
Again, look at all their code samples. Look at the Right-click Code Snippets
in VS2005.... you'll see that you're wrong.
espouse camelCase for private variable.... but then decided to concentrate
on the PUBLIC object model of classes rather than enter into the fray of all
the arguments going back and forth in the community.
Again, look at all their code samples. Look at the Right-click Code Snippets
in VS2005.... you'll see that you're wrong.
Mitchell S. Honnert said:Herfried, am I looking in the right place?They do so in the internal naming guidelines and in the "Field Usage
Guidelines" chapter.
http://msdn.microsoft.com/library/d...s/cpgenref/html/cpconfieldusageguidelines.asp
If so, then I still hold to my assertion that Microsoft doesn't state
definitively to use camelCase for variables defined within a method.
Admittedly, the sample code uses this convention, but as we both have
pointed out, this is most likely a result of the fact that the VB.NET
sample code was written by C# developers. Nowhere do I see a plain
statement by Microsoft that says, "Use camelCase for local variables in a
method."
As I've mentioned in other subthreads, using camelCase for variables
defined within a method would render the use of camelCase for parameters
as useless. So, surely this can't be what they really mean. When a
programmer sees a variable in camelCase format, they know that the only
place in the Microsoft standards where camelCase is explicitly recommended
is for parameters, so they know it must be a parameter.
"Use camelCase for parameters and PascalCase for everything else." That's
what I get out of reading the MS standards. camelCase may be messy, but
given this definition, it's so narrowly defined that it isn't a bid deal.
Mitchell S. Honnert
www.UltraID3Lib.com