473,397 Members | 1,949 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,397 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 5725
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.