H
huangda 晋江兴达机械
Rick Brandt said:I think someone should point out that what most Access/VB people call a
"Naming Convention" is not necessarily what people in other environments
call a naming convention. What is very common in other programming
environments is a naming convention like...
ClassName
methodName
propertyName
variableName
CONSTANT_NAME
This is then combined with the standard of using no characters besides A-
Z, 0-9, and the underscore.
A naming convention that involves the use of prefixes to "type" an object
is not used much outside of Access/VB and outside of those circles it is
almost universally derided.
That prefixes "make it easier for the next guy" is unsupportable and
frankly laughable. For a developer to see a variable named something
like "emailAddress" and react with "What is it? Is it an Integer?. A
String? This is confusing!" would only mean that he is incompetent.
There are a great many people who *prefer* prefix-naming and are *more
comfortable* when they see it compared to when they don't. To them I say
go ahead and use it. Where I draw the line is when people suggest to
others that your code will look unprofessional if you don't toe the same
line. That is rubbish.