P
Paul Werkowitz
Am 28 Feb 2007 08:47:32 -0800 schrieb Zytan:
Hello Zytan,
not everything is in a class. Local variables, e.g., are not.
OTOH, the members of struct Point { int x, int y } probably should not
receive a prefix either.
To find a good convention, ask yourself the following questions:
- What do you want to express in addition to the name?
- Do you want to use case as a distinguisher?
- Do you want to prefix or postfix?
- What are the abbreviation rules?
- Do you want to use underscores?
In addition, think of the following:
- Intellisense issues
- human readability
My 2 cents...
Paule
Is the m_variableName used for data members in C# classes? Since
everything is in a class, it seems that it becomes pointless.
What is the general naming conventions?
What are your personal thoughts?
I've been using m_variableName, but I think I'm going to drop it.
I've also been prefixing classes with clsMyClassName, and forms with
frmMyFormName, abd buttons with btnOK, btnCancel, etc, which all makes
sense. Especially for the classes to avoid name clashes.
Zytan
Hello Zytan,
not everything is in a class. Local variables, e.g., are not.
OTOH, the members of struct Point { int x, int y } probably should not
receive a prefix either.
To find a good convention, ask yourself the following questions:
- What do you want to express in addition to the name?
- Do you want to use case as a distinguisher?
- Do you want to prefix or postfix?
- What are the abbreviation rules?
- Do you want to use underscores?
In addition, think of the following:
- Intellisense issues
- human readability
My 2 cents...
Paule