Re: Hungarian Notation
- From: Jim Cooper <jcooper@xxxxxxxxxxxxx>
- Date: Sat, 09 Apr 2005 09:56:54 +0100
To anyone reading your code, they *obviously* indicate type whether you intend it or not.
Arrrrrgh!!!!!!!!!! Get past the button example, OK. Look at the List one. I call all sorts of things lists that do not indicate the type.
You use the postfix to distinguish the control from other things, and in doing so, type is the natural thing to use for that distinction.
Please try and understand that my motivation for names is different than yours. Descriptive names for variables (and functions and class and...) should always describe what the variable (etc) is. So it is natural to fairly often include what kind of thing it is you are talking about. In the case of UI elements the type (in the computer language sense) name will fairly often be included, because if you take the "T" off the type name, it is almost always the word for the kind of thing it is.
That is why it is so hard for you to tell the difference. But really, truly, I do **not** name things to indicate the type. I indicate what **kind of thing** they are.
Saying you do not use them for this distinction is saying you use them for *no reason at all*.
<sigh> No, I'm saying I try to give things good descriptive names.
You are indicating the *nature* of the object
Well yes, of course! That's key to good naming, surely? In the UI part of our code, we have fewer words to use. There are a lot of words to describe different sorts of people with using "person" in the name. There are not lots of words to describe different sorts of buttons, so we get back to using adjectives + "button" (and maybe other grammatical constructs)
Cheers, Jim Cooper
__________________________________________
Jim Cooper jcooper@xxxxxxxxxxxxx Tabdee Ltd http://www.tabdee.ltd.uk
TurboSync - Connecting Delphi to your Palm __________________________________________ .
- Follow-Ups:
- Re: Hungarian Notation
- From: Wayne Niddery [TeamB]
- Re: Hungarian Notation
- References:
- Hungarian Notation
- From: roman modic
- Re: Hungarian Notation
- From: Joanna Carter \(TeamB\)
- Re: Hungarian Notation
- From: Michael Stum
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Wayne Niddery [TeamB]
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Bryce K. Nielsen
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Bryce K. Nielsen
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Bryce K. Nielsen
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Wayne Niddery [TeamB]
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Wayne Niddery [TeamB]
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Wayne Niddery [TeamB]
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Wayne Niddery [TeamB]
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Wayne Niddery [TeamB]
- Hungarian Notation
- Prev by Date: Re: Hungarian Notation
- Next by Date: Re: Hungarian Notation
- Previous by thread: Re: Hungarian Notation
- Next by thread: Re: Hungarian Notation
- Index(es):