Re: Hungarian Notation



Jim Cooper wrote:
>> It shows *a* difference, my prefixes identify the basic type of a
>> component or control
>
> And my names *do not* indicate type, except by coincidence. I do not
> name them with the intention of indicating type. You do.

To anyone reading your code, they *obviously* indicate type whether you
intend it or not. 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. Saying you do not use them for this distinction is saying you
use them for *no reason at all*.

> I just gave an example of where I do **not** use ListBox :-) I use
> "List" for all sorts of things. Some of those things will be TList
> objects, but that's not why I use the name. I also use "List" on
> TCollection objects, and on TListBox, TListView, TSomeSortOfGrid, and
> so on.
>
> See? I'm not indicating type (in the programming language sense of
> the word)

You are indicating the *nature* of the object, we are doing no different in
that regard, I'm just taking it a little further and distinguishing
*controls* from other objects. For a collection or stringlist I would name
it as you do, with "List" at the end.

--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"The only reason some people get lost in thought is because it's
unfamiliar territory." - Paul Fix


.



Relevant Pages

  • Re: Request.Form or IsPostBack and ViewState
    ... The main reason I usualy make the distinction is if I am building my ... own controls dynamicaly that need viewstate. ... In this case the control ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VS2005 minor peeves
    ... I don't view skins as a CSS replacement. ... prompt (especially if the input on the right has lengths indicating the ... How do you control the font used for prompts ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Ugh, Winter redux
    ... You're the one making a distinction. ... I make no distinction at all between the guy who is designing box ... control or synchrophaser or ABS controller or the like. ... be classed as "engineering," but I have yet to see you trot out ...
    (rec.motorcycles)
  • Re: Hungarian Notation
    ... I'm not indicating type - it's just a descriptive ... or control, I do not use it for other variables. ... *purpose* of identifying the basic nature of the control - an edit, ... listbox, a button, etc. ...
    (borland.public.delphi.non-technical)
  • Re: difference between os.fdopen and builtin open
    ... You've already hit the most important difference: os.openlets you share files between processes, while the built-in doesn't have any control of that type. ... Another distinction is that fdopencan be used to get a file object from a fd handle, which may be obtained some other way. ...
    (comp.lang.python)