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? 15 1857 http://msdn.microsoft.com/library/en...guidelines.asp
"BillyTheKi d" <nf*@nospam.com > wrote in message
news:uj******** ******@tk2msftn gp13.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?
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.publi c.dotnet newsgroups enough that searching http://groups.google.com should turn up something.
Hope this helps
Jay
"BillyTheKi d" <nf*@nospam.com > wrote in message
news:uj******** ******@tk2msftn gp13.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?
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********@ema il.msn.com> wrote in message
news:%2******** ********@tk2msf tngp13.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.publi c.dotnet newsgroups enough that searching http://groups.google.com should turn up something.
Hope this helps Jay
"BillyTheKi d" <nf*@nospam.com > wrote in message news:uj******** ******@tk2msftn gp13.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?
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.publi c.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
"BillyTheKi d" <nf*@nospam.com > wrote in message
news:%2******** ********@TK2MSF TNGP09.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********@ema il.msn.com> wrote in
message news:%2******** ********@tk2msf tngp13.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.publi c.dotnet newsgroups enough that searching http://groups.google.com should turn up something.
Hope this helps Jay
"BillyTheKi d" <nf*@nospam.com > wrote in message news:uj******** ******@tk2msftn gp13.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?
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.
"BillyTheKi d" <nf*@nospam.com > wrote in message
news:uj******** ******@tk2msftn gp13.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?
> 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****@standar ds.com> wrote in message
news:Ox******** ******@TK2MSFTN GP12.phx.gbl... Yes, but it makes no sense to do so.
-- http://www.standards.com/; See Howard Kaikow's web site. "BillyTheKi d" <nf*@nospam.com > wrote in message news:uj******** ******@tk2msftn gp13.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?
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******** ******@TK2MSFTN GP10.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****@standar ds.com> wrote in message news:Ox******** ******@TK2MSFTN GP12.phx.gbl... Yes, but it makes no sense to do so.
-- http://www.standards.com/; See Howard Kaikow's web site. "BillyTheKi d" <nf*@nospam.com > wrote in message news:uj******** ******@tk2msftn gp13.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?
Howard Kaikow <ka****@standar ds.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.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
"Howard Kaikow" <ka****@standar ds.com> wrote in message
news:Ox******** ******@TK2MSFTN GP12.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) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 but that sounded really
strange. I've seen variable names that begin with _varName. Is that another
possibility?
Den
|
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: MyClass
variable: iMyInteger
|
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 anyone know if it is
true... or merely urban myth?
|
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:
1) Consistency throughout and knowing which objects are yours
(clsEmployee, tblEmployee, frmEmployee, etc).
2) Not having to name an employee form EmployeeForm.aspx because the
mane is already taken by your class named Employee.cs
|
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?
I tend to use it a lot, especially when IDing my controls. For instance the
controls in a contact form I create could be IDed as such:
| |
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 using out there
and why. Thanks!
|
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 little 3-character prefixes.
I'm fine with EmployeeFirstNameLabel instead of lblEmployeeFirstName, but at
the table and class level, I get frustrated because terms I want to use
reserved keywords.
I wanted "Event" and "User" as classes and table...
|
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++ code?
|
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.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |