|
-
Oct 13th, 2003, 03:14 PM
#1
Thread Starter
Frenzied Member
Naming Conventions - Variables
http://www20.brinkster.com/xous/NamingConvent.html
I know M$ doesnt want us to use hugarian Notation but i like it, does this look right?
does anyone know the prefix's for the ones im missing/ are any wrong?
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Oct 13th, 2003, 03:40 PM
#2
I use bol for Boolean..... dat for Dates....
sint for Short Int
That's all I've got to add....
TG
-
Oct 14th, 2003, 01:55 AM
#3
yay gay
i personally dont like hungarion notation..i do it like this:
private vars -> _myVar
public properties -> MyVar(that will point to _myVar)
so i always know that ThisWord will point to _thisWord
\m/  \m/
-
Oct 14th, 2003, 02:03 AM
#4
Originally posted by PT Exorcist
i personally dont like hungarion notation..i do it like this:
private vars -> _myVar
public properties -> MyVar(that will point to _myVar)
so i always know that ThisWord will point to _thisWord
That is pretty much how I do it too. I never liked that hungarian notation.
-
Oct 17th, 2003, 11:55 PM
#5
Thread Starter
Frenzied Member
I got use to it and I dont like not using it 
makes debugging easier...
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Oct 18th, 2003, 02:27 AM
#6
If you hover over a variable it will show you the declared type. So I don't see how including it in the name is that helpful but that is just me. Really I don't think it matters what conventions you use as long as you are consistent and if you work in a group you all do the samething or work it out. That is what I like best about programming there is so many ways of doing the samething, plenty of room for style and choice.
-
Oct 19th, 2003, 07:38 AM
#7
I wonder how many charact
Originally posted by PT Exorcist
i personally dont like hungarion notation..i do it like this:
private vars -> _myVar
public properties -> MyVar(that will point to _myVar)
so i always know that ThisWord will point to _thisWord
That's the naming convention we use at my company also.
Hungarian may have made more sense when using some basic programming editor like Pico on Unix, where you don't have Intellisense.
-
Oct 19th, 2003, 07:45 AM
#8
yay gay
its funny as i dont know when and why i started using that convention..i never saw anyone using it so it came naturally (at least in me) but looks like everyone uses it..maybe its instinct of human race to use it that way
\m/  \m/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|