473,387 Members | 1,757 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.

Has Microsoft recommended dropping Hungarian notation for .NET development?

I've heard from various sources that Microsoft recommends dropping Hungarian
notation for .NET development but am unable to explicitly find this
recommendation or their reasons for doing so. Does anyone know if it is
true... or merely urban myth?
Jul 21 '05 #1
15 1810
http://msdn.microsoft.com/library/en...guidelines.asp
"BillyTheKid" <nf*@nospam.com> wrote in message
news:uj**************@tk2msftngp13.phx.gbl...
I've heard from various sources that Microsoft recommends dropping Hungarian notation for .NET development but am unable to explicitly find this
recommendation or their reasons for doing so. Does anyone know if it is
true... or merely urban myth?

Jul 21 '05 #2
Billy,
Yes they have dropped it.

For the new recommendations see:
http://msdn.microsoft.com/library/de...Guidelines.asp

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

For private fields, I will use Hungarian on control names. Seeing as they
are private this doesn't really matter.

I don't have a reference to why, however it has been rehashed in the
microsoft.public.dotnet newsgroups enough that searching
http://groups.google.com should turn up something.

Hope this helps
Jay

"BillyTheKid" <nf*@nospam.com> wrote in message
news:uj**************@tk2msftngp13.phx.gbl...
I've heard from various sources that Microsoft recommends dropping Hungarian notation for .NET development but am unable to explicitly find this
recommendation or their reasons for doing so. Does anyone know if it is
true... or merely urban myth?

Jul 21 '05 #3
I see that it isn't in there, but it is not explicity called out as to why.
Perhaps it would be helpful to the debate if Microsoft took a more
definitive stance and explained thier reasonong.

"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Billy,
Yes they have dropped it.

For the new recommendations see:
http://msdn.microsoft.com/library/de...Guidelines.asp
http://msdn.microsoft.com/library/de...Guidelines.asp
For private fields, I will use Hungarian on control names. Seeing as they
are private this doesn't really matter.

I don't have a reference to why, however it has been rehashed in the
microsoft.public.dotnet newsgroups enough that searching
http://groups.google.com should turn up something.

Hope this helps
Jay

"BillyTheKid" <nf*@nospam.com> wrote in message
news:uj**************@tk2msftngp13.phx.gbl...
I've heard from various sources that Microsoft recommends dropping

Hungarian
notation for .NET development but am unable to explicitly find this
recommendation or their reasons for doing so. Does anyone know if it is
true... or merely urban myth?


Jul 21 '05 #4
Billy,
Like I said this has hashed & rehashed and turned upside down, sliced,
diced, purée, minced, mashed, ... Till the cows came home and got feed up
and left ;-)

If you need debate material, search the microsoft.public.dotnet newsgroups
at http://groups.google.com should turn up enough why.

There may actually be articles on MSDN as to the why, I just do not have
links handy. I get this vague idea that Dr Gui and or MSDN Magazine covered
the why on different occasions.

Hope this helps
Jay

"BillyTheKid" <nf*@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I see that it isn't in there, but it is not explicity called out as to why. Perhaps it would be helpful to the debate if Microsoft took a more
definitive stance and explained thier reasonong.

"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
Billy,
Yes they have dropped it.

For the new recommendations see:

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

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

For private fields, I will use Hungarian on control names. Seeing as they are private this doesn't really matter.

I don't have a reference to why, however it has been rehashed in the
microsoft.public.dotnet newsgroups enough that searching
http://groups.google.com should turn up something.

Hope this helps
Jay

"BillyTheKid" <nf*@nospam.com> wrote in message
news:uj**************@tk2msftngp13.phx.gbl...
I've heard from various sources that Microsoft recommends dropping

Hungarian
notation for .NET development but am unable to explicitly find this
recommendation or their reasons for doing so. Does anyone know if it is true... or merely urban myth?



Jul 21 '05 #5
Yes, but it makes no sense to do so.

MSFT has added capabilities so you can see the data type, etc., but real
programmers know that it is often necessary to print out code and look at
the code away from a terminal.

--
http://www.standards.com/; See Howard Kaikow's web site.
"BillyTheKid" <nf*@nospam.com> wrote in message
news:uj**************@tk2msftngp13.phx.gbl...
I've heard from various sources that Microsoft recommends dropping Hungarian notation for .NET development but am unable to explicitly find this
recommendation or their reasons for doing so. Does anyone know if it is
true... or merely urban myth?

Jul 21 '05 #6
> MSFT has added capabilities so you can see the data type, etc., but real
programmers know that it is often necessary to print out code and look at
the code away from a terminal.
I'm surprised that you say that. I can't remember the last time I printed
out code for any reason, let alone to look at it away from the m/c.

Do people still do that?

Charles
"Howard Kaikow" <ka****@standards.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl... Yes, but it makes no sense to do so.
--
http://www.standards.com/; See Howard Kaikow's web site.
"BillyTheKid" <nf*@nospam.com> wrote in message
news:uj**************@tk2msftngp13.phx.gbl...
I've heard from various sources that Microsoft recommends dropping

Hungarian
notation for .NET development but am unable to explicitly find this
recommendation or their reasons for doing so. Does anyone know if it is
true... or merely urban myth?


Jul 21 '05 #7
The real problem I have with it is that over time as the code needs to
change you might end up with a var name like intNumber actually being a long
type.

Changing var names is a pain...

Working with ones that have not been changed but need to be is even worse.

"Charles Law" <bl**@thingummy.com> wrote in message
news:ub**************@TK2MSFTNGP10.phx.gbl...
MSFT has added capabilities so you can see the data type, etc., but real
programmers know that it is often necessary to print out code and look at the code away from a terminal.


I'm surprised that you say that. I can't remember the last time I printed
out code for any reason, let alone to look at it away from the m/c.

Do people still do that?

Charles
"Howard Kaikow" <ka****@standards.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
Yes, but it makes no sense to do so.
--
http://www.standards.com/; See Howard Kaikow's web site.
"BillyTheKid" <nf*@nospam.com> wrote in message
news:uj**************@tk2msftngp13.phx.gbl...
I've heard from various sources that Microsoft recommends dropping

Hungarian
notation for .NET development but am unable to explicitly find this
recommendation or their reasons for doing so. Does anyone know if it is true... or merely urban myth?



Jul 21 '05 #8
Howard Kaikow <ka****@standards.com> wrote:
Yes, but it makes no sense to do so.

MSFT has added capabilities so you can see the data type, etc., but real
programmers know that it is often necessary to print out code and look at
the code away from a terminal.


I agree with Charles on this - how often do you actually do that?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #9
"Howard Kaikow" <ka****@standards.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
Yes, but it makes no sense to do so.

MSFT has added capabilities so you can see the data type, etc., but real
programmers know that it is often necessary to print out code and look at
the code away from a terminal.

The last time since I remember commercial programming I have printed code
out only occasionally to grasp some complex algo (and hungarian would not
have helped there), And I have only printed larger parts ONCE - to but them
into a binder and present them to a customer as "offical code turnover
event".

I have never really considered looking at code outside of the IDE somethign
"real programmers" do.

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)

Jul 21 '05 #10
Often.
--
http://www.standards.com/; See Howard Kaikow's web site.
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Howard Kaikow <ka****@standards.com> wrote:
Yes, but it makes no sense to do so.

MSFT has added capabilities so you can see the data type, etc., but real
programmers know that it is often necessary to print out code and look at the code away from a terminal.


I agree with Charles on this - how often do you actually do that?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Jul 21 '05 #11
Howard Kaikow <ka****@standards.com> wrote:
Often.


Why, out of interest? It does sound (given the other responses here) as
if you're in the minority here - and conventions can always be tweaked
if you're in special circumstances (such as being in a position where
you often need to do something that other people only do very rarely).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #12
How are code reviews done then? Or, do "real programmers" not need them?

Bob Lehmann

"Thomas Tomicek [MVP]" <t.********@thona-consulting.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
"Howard Kaikow" <ka****@standards.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
Yes, but it makes no sense to do so.

MSFT has added capabilities so you can see the data type, etc., but real
programmers know that it is often necessary to print out code and look at the code away from a terminal.

The last time since I remember commercial programming I have printed code
out only occasionally to grasp some complex algo (and hungarian would not
have helped there), And I have only printed larger parts ONCE - to but

them into a binder and present them to a customer as "offical code turnover
event".

I have never really considered looking at code outside of the IDE somethign "real programmers" do.

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)

Jul 21 '05 #13
What's wrong with performing them via an IDE? Quite a bit more convenient,
particularly wrt to tracking down dependencies, than printed code...
"Bob Lehmann" <none> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How are code reviews done then? Or, do "real programmers" not need them?

Bob Lehmann

"Thomas Tomicek [MVP]" <t.********@thona-consulting.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
"Howard Kaikow" <ka****@standards.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
Yes, but it makes no sense to do so.

MSFT has added capabilities so you can see the data type, etc., but real programmers know that it is often necessary to print out code and
look
at the code away from a terminal.

The last time since I remember commercial programming I have printed code out only occasionally to grasp some complex algo (and hungarian would not have helped there), And I have only printed larger parts ONCE - to but

them
into a binder and present them to a customer as "offical code turnover
event".

I have never really considered looking at code outside of the IDE

somethign
"real programmers" do.

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)


Jul 21 '05 #14
Are code reviews really necessary?

"Bob Lehmann" <none> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How are code reviews done then? Or, do "real programmers" not need them?

Bob Lehmann

"Thomas Tomicek [MVP]" <t.********@thona-consulting.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
"Howard Kaikow" <ka****@standards.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
Yes, but it makes no sense to do so.

MSFT has added capabilities so you can see the data type, etc., but real programmers know that it is often necessary to print out code and
look
at the code away from a terminal.

The last time since I remember commercial programming I have printed code out only occasionally to grasp some complex algo (and hungarian would not have helped there), And I have only printed larger parts ONCE - to but

them
into a binder and present them to a customer as "offical code turnover
event".

I have never really considered looking at code outside of the IDE

somethign
"real programmers" do.

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)


Jul 21 '05 #15
Billy,
Unless you are running a "Code Critic", yes!

How else do you enforce adherence to standards & maintain a certain
consistency in your teams code?

Also, I view code reviews as an opportunity for both the reviewer & the
developer to learn about new techniques.

Hope this helps
Jay

"BillyM" <nf*@nospam.com> wrote in message
news:u4**************@TK2MSFTNGP09.phx.gbl...
Are code reviews really necessary?

"Bob Lehmann" <none> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How are code reviews done then? Or, do "real programmers" not need them?

Bob Lehmann

"Thomas Tomicek [MVP]" <t.********@thona-consulting.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
"Howard Kaikow" <ka****@standards.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
> Yes, but it makes no sense to do so.
>
> MSFT has added capabilities so you can see the data type, etc., but

real > programmers know that it is often necessary to print out code and look
at
> the code away from a terminal.
The last time since I remember commercial programming I have printed

code out only occasionally to grasp some complex algo (and hungarian would not have helped there), And I have only printed larger parts ONCE - to but

them
into a binder and present them to a customer as "offical code turnover
event".

I have never really considered looking at code outside of the IDE

somethign
"real programmers" do.

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)



Jul 21 '05 #16

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

Similar topics

14
by: Denny | last post by:
For most of my variable names, I use Hungarian notation to determine between one and the other. But what names can I use for public and private variables? I was using prv_varName and pub_varName...
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: ...
15
by: BillyTheKid | last post by:
I've heard from various sources that Microsoft recommends dropping Hungarian notation for .NET development but am unable to explicitly find this recommendation or their reasons for doing so. Does...
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? ...
3
by: Grey Squirrel | last post by:
On wednesday my company will have an open ended discussion whether to standardize hungarian notation or pascal/cammel case notation. We'd love to recieve some feedback on what other people are...
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...
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: 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:
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
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:
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,...
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.