473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Using hungarian notation in VB.net?


I'm noticing a lot of VB.net examples are not using hungarian notation
(or variants of it) when declaring variables (i.e. strMyString,
iMyBoolean etc).

Is there a generally accepted "norm" for naming variables? What do
you guys use?

Nov 20 '05 #1
6 5721
The trend is definitely away from hungarian notation...MS is discouraging
its use b/c they feel its not longer necessary. I know they have a link to
their suggested guidelies (and if you download fxcop of gotdotnet.com it has
them) but I can't seem to find it...I'll post it if I can. But check out fx
cop in the interim, i'm 99% sure it has all of the guidelines.

HTH,

Bill
"Chuck" <Ch***@c2c.com> wrote in message
news:2p********************************@4ax.com...

I'm noticing a lot of VB.net examples are not using hungarian notation
(or variants of it) when declaring variables (i.e. strMyString,
iMyBoolean etc).

Is there a generally accepted "norm" for naming variables? What do
you guys use?

Nov 20 '05 #2
The trend is definitely away from hungarian notation...MS is discouraging
its use b/c they feel its not longer necessary. I know they have a link to
their suggested guidelies (and if you download fxcop of gotdotnet.com it has
them) but I can't seem to find it...I'll post it if I can. But check out fx
cop in the interim, i'm 99% sure it has all of the guidelines.

HTH,

Bill
"Chuck" <Ch***@c2c.com> wrote in message
news:2p********************************@4ax.com...

I'm noticing a lot of VB.net examples are not using hungarian notation
(or variants of it) when declaring variables (i.e. strMyString,
iMyBoolean etc).

Is there a generally accepted "norm" for naming variables? What do
you guys use?

Nov 20 '05 #3
Hi Chuck

Have a look here for what Microsoft has to say on the matter:

http://msdn.microsoft.com/library/de...Guidelines.asp

HTH

Charles
"Chuck" <Ch***@c2c.com> wrote in message
news:2p********************************@4ax.com...

I'm noticing a lot of VB.net examples are not using hungarian notation
(or variants of it) when declaring variables (i.e. strMyString,
iMyBoolean etc).

Is there a generally accepted "norm" for naming variables? What do
you guys use?

Nov 20 '05 #4
Hi Chuck

Have a look here for what Microsoft has to say on the matter:

http://msdn.microsoft.com/library/de...Guidelines.asp

HTH

Charles
"Chuck" <Ch***@c2c.com> wrote in message
news:2p********************************@4ax.com...

I'm noticing a lot of VB.net examples are not using hungarian notation
(or variants of it) when declaring variables (i.e. strMyString,
iMyBoolean etc).

Is there a generally accepted "norm" for naming variables? What do
you guys use?

Nov 20 '05 #5
* Chuck <Ch***@c2c.com> scripsit:
I'm noticing a lot of VB.net examples are not using hungarian notation
(or variants of it) when declaring variables (i.e. strMyString,
iMyBoolean etc).

Is there a generally accepted "norm" for naming variables? What do
you guys use?


Personally, I stick to the rules, except I do /not/ use camel-case for
variables.

<URL:http://dotnet.mvps.org/dotnet/code/miscsources/>
-> "Bennenungsrichtlinien und Code-Konventionen"

Just ignore the German language text and have a look at the links!

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
* Chuck <Ch***@c2c.com> scripsit:
I'm noticing a lot of VB.net examples are not using hungarian notation
(or variants of it) when declaring variables (i.e. strMyString,
iMyBoolean etc).

Is there a generally accepted "norm" for naming variables? What do
you guys use?


Personally, I stick to the rules, except I do /not/ use camel-case for
variables.

<URL:http://dotnet.mvps.org/dotnet/code/miscsources/>
-> "Bennenungsrichtlinien und Code-Konventionen"

Just ignore the German language text and have a look at the links!

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: Phill | last post by:
Does anyone know the reasoning for Microsoft abandoning Hungarina Notation in C#? I have found it very usefull in C++. I like this style: constant: MY_CONSTANT methos: myMethod() class: ...
6
by: Chuck | last post by:
I'm noticing a lot of VB.net examples are not using hungarian notation (or variants of it) when declaring variables (i.e. strMyString, iMyBoolean etc). Is there a generally accepted "norm" for...
66
by: CMM | last post by:
So after three years of working in .NET and stubbornly holding on to my old hungarian notation practices--- I resolved to try to rid myself of the habit. Man, I gotta say that it is liberating!!! I...
24
by: Ronald S. Cook | last post by:
An ongoing philosophical argument, I would like your opinions. With the release of .NET, Microsoft spoke of moving away from the notation as a best practice. I'm a believer for a few reasons: ...
24
by: darrel | last post by:
I just discovered that MS recommends that we NOT use hungarian notation with the .net framework: http://msdn2.microsoft.com/en-us/library/ms229045.aspx What are the real cons for using it? ...
14
by: Ronald S. Cook | last post by:
I've been weaning myself off of Hungarian notation because that's what Microsoft is telling me to do, and I want to be a good little MS developer. But things keep coming up that make me miss my...
3
by: Ronald S. Cook | last post by:
For all those anti-Hungarian notation people out there, how would you name an employee first name label and textbox on an create/modify employee form, respectively (please)? Thanks, Ron
18
by: dom.k.black | last post by:
I am looking at starting a new piece of work for a company who are heavily into hungarian notation for C coding. Any killer arguments for NOT carrying this terrible practice forward into new C++...
12
by: inhahe | last post by:
Does anybody know of a list for canonical prefixes to use for hungarian notation in Python? Not that I plan to name all my variables with hungarian notation, but just for when it's appropriate.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.