|
I use camelCase for local variables and HungarianNotation for GUI constrol, such as txtUsername.
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
Dario Solera wrote: HungarianNotation for GUI constrol, such as txtUsername
That's my one concession to Hungarian these days. Though strictly speaking, in .NET say, we should write "usernameTextBox."
Kevin
|
|
|
|
|
Not according to the designer created names we see in VS.. e.g. textBox1, textBox2 etc - for me this indicates that we should probably be naming like so: textBoxUserName, textBoxPassword etc. Which fits nicely with the C# design guidelines.
|
|
|
|
|
|
Exactly.
I used to use hungarian when I was using c++, because that was what everyone in the company was using. Now I switched to Java, so I use camel which is the standard.
Going against the standard is a bad idea, you would just be making extra work for yourself for no reason
|
|
|
|
|
I use hungarian while using C++. When creating object instances, the "obj" prefix is used. In C# I still use hungarian for "primitive" types (int, long, double, string, char), but I avoid using "obj" since everything is a class. Therefore, I use camelNotation for any variables other than "primitive" types. I use obj when:
object objSomething;
Regards,
Fernando.
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
|
And examples!
I wanted all lowercase, and camel was typed that way... time to wake up!
|
|
|
|