|
*shudder* personally i diskile typedef for things like this, because then i do not know what it is. does this type have an iterator? which iterator types, if any? is it a list or a map? maps have a different interface (at least in Qt, which is what we use) to lists, so knowing the difference is very important.
it is a personal preference, but i hate having to go hunting through files to find out what i am manipulating.
zen is the art of being at one with the two'ness
|
|
|
|
|
I use camelCasing and someitmes Hungarian too
Which one would be standrard one?
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
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
|
|
|
|
|
|
Yes it is. Hence the " "
|
|
|
|
|
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!
|
|
|
|