|
Whatever I feel like.
I will mostly use obscure variables and names, which does make it hard for the next guy, but it does secure the job for me
|
|
|
|
|
|
WayneMJ wrote: it does secure the job for me
It does secure that you'll spent your life maintaining legacy code, because you won't get any new projects and nobody can read the old ones.
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
Hi, what does 'camel cased' stands for? What about 'pascal cased'?
Can you give me some examples? Thanks in advance for your answer.
|
|
|
|
|
camelCasedIsWhereTheFirstLetterOfTheFirstWordIsLowerCaseWhileTheRestAreUpperCase
PascalCasedIsWhereTheFirstLetterOfTheEachWordIsUpperCase
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
-- modified at 2:54 Monday 3rd April, 2006
|
|
|
|
|
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!
|
|
|
|