473,386 Members | 1,706 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,386 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 5720
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.