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?
Printable View
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?
I use bol for Boolean..... dat for Dates....
sint for Short Int
That's all I've got to add....
TG
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.Quote:
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
I got use to it and I dont like not using it :D
makes debugging easier...
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.
That's the naming convention we use at my company also.Quote:
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
Hungarian may have made more sense when using some basic programming editor like Pico on Unix, where you don't have Intellisense.
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 :rolleyes: