Re: Member Variables Naming Convention
- From: "Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx>
- Date: Sat, 18 Nov 2006 21:53:29 -0700
Dave,
BTW, I found two interesting bullets in a Microsoft document [link below]
regarding the use of hungarian notation and the "_" prefix in field names:
Yeah, those were the ones I was thinking about. Microsoft is being very
one-sided about not using those prefixes. If you see where they talk about
control names, please pass it along.
I must argue here that my examples of txtFirstName and lblFirstName
indicate both type and semantics. However, I use the notation in other
controls even when there is no ambiguity, but I'm going to try to break
that habit for my next project. Do I really need to know that a field is
a Control by looking at its name when I have intellisense and tooltips on
hand at all times? - I don't think so, but I'll see how it goes ;)
I think it is still useful. Yes, Intellisense offers assistance here but I
often print code and review it in more detail. Also, for more complex code,
it may just be more efficient to know what a variable refers to just by
looking.
In the end, I have mixed feelings about this. I'm all for cleaning things
up, but I've been programming a long, long time and readability is
important. I'm not 100% sure I'm ready to abandon prefixes that tell me
about a particular variable.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
.
- References:
- Member Variables Naming Convention
- From: Jonathan Wood
- Re: Member Variables Naming Convention
- From: Michael Nemtsev
- Re: Member Variables Naming Convention
- From: Jonathan Wood
- Re: Member Variables Naming Convention
- From: Dave Sexton
- Re: Member Variables Naming Convention
- From: Jonathan Wood
- Re: Member Variables Naming Convention
- From: Dave Sexton
- Re: Member Variables Naming Convention
- From: Jonathan Wood
- Re: Member Variables Naming Convention
- From: Dave Sexton
- Re: Member Variables Naming Convention
- From: Jonathan Wood
- Re: Member Variables Naming Convention
- From: Dave Sexton
- Re: Member Variables Naming Convention
- From: Jonathan Wood
- Re: Member Variables Naming Convention
- From: Dave Sexton
- Member Variables Naming Convention
- Prev by Date: Re: Membership providers in dotNet 2.0
- Next by Date: Re: Amazing !!!
- Previous by thread: Re: Member Variables Naming Convention
- Next by thread: Re: Member Variables Naming Convention
- Index(es):
Relevant Pages
|