Hungarian Notation

This is a discussion on Hungarian Notation within the A Brief History of Cprogramming.com forums, part of the Community Boards category; all right!!!!!! here I am, the name of the guy is... ummm, let me see........... I am writhing it exactly ...

  1. #16
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    all right!!!!!! here I am,

    the name of the guy is...
    ummm, let me see...........

    I am writhing it exactly as shown in my DirectX book

    HUNGARIAN NOTATION
    All the variable names in Windows land use what is called Hungarian notation. The name came from its inventos, Charles Simonyi, a now legendary Microsoft programmer who happened to be hungarian..


    And by the way, I don't mind usng Hungarian notation, in some programs I use it, in some I don't, All I care about is that I understand my own code, and with or without Hungarian is basically the same thing.

    Yeah, a horse is a horse, but you can call YOUR horse the way you want, even if it's hrsMerlin

    Oskilian

  2. #17
    Registered User rick barclay's Avatar
    Join Date
    Aug 2001
    Posts
    835
    What would they have called it had the guy been an American?

    rick barclay
    No. Wait. Don't hang up!

    This is America calling!

  3. #18
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    >It's a code. A standard. You don't have to follow it, but if all
    in your team do, it really speeds up debugging.

    that i agree with... if i didn't have consistent naming conventions for all my stuff, i'd be lost...
    hasafraggin shizigishin oppashigger...

  4. #19
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    Obviously you have a different idea of what Hungarian notation is than I do. I am okay with putting a "p" in front of variables to tell that they are pointers, an "h" for handles, etc...that is useful.

    I consider it Hungarian notation when the programmer names a variable in a completely useless, non-sensible, jibberish way.

    Example:

    int ___mf__J_mInt___;


    What is the deal with all the underscores! They arent needed! Just create an explanatory name, for example:

    int FrameCount;

    OR:

    int *pFrameCount;

    stuff like that.

    So my idea of Hungarian notation is when variables are named in a completely non-sensible way, not when they have little prefixes. Prefixes help in countless ways at some times.
    My Website

    "Circular logic is good because it is."

  5. #20
    .
    Join Date
    Aug 2001
    Posts
    598
    >All the variable names in Windows land use what is called Hungarian notation. The name came from its inventos, Charles Simonyi, a now legendary Microsoft programmer who happened to be hungarian.. <

    Yes he discovered that if the cap locks is on and he hits shift it will print lower case.

    Ex Caps Locks w/o shift
    CAPITALS

    Ex Caps Locks w/ shift
    lowercase.

    Just in case your are wondering all the programmers keyboard at microsoft have had the caps lock key locked and unable to change from caps lock.
    To Err Is To Be Human. To Game Is Divine!"

  6. #21
    Registered User EvenFlow's Avatar
    Join Date
    Oct 2001
    Posts
    422
    Hear of Polish Notation?

    Highlight this message to see the answer:
    The method of writing all operators either before their operands, or after them. Named Polish Notation after mathematician Jan Lukasiewicz.
    Ramble on...

  7. #22
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    >What would they have called it had the guy been an American?

    hehe... Mut Notation???

    evenflow, kudos... you got the wrong color because of the incorrect guesswork of the post_in_thread_number % 2 expression... maybe someone posted whilst you posted? niice...
    hasafraggin shizigishin oppashigger...

  8. #23
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    So my idea of Hungarian notation is when variables are named in a completely non-sensible way, not when they have little prefixes. Prefixes help in countless ways at some times.
    This:

    int ___mf__J_mInt___;


    Is in no way hungarian. Maybe they do this in hungary, but
    I doubt it. This is just gibberish.

    int FrameCount;

    hungarian notation for normal variable:

    int nFrameCount;

    hungarian notation for member variable:

    int m_nFrameCount;

    Before you try to judge something, get at least
    some basic infos on it please. People using double
    underscores are crucified on spot, for double underscores
    are used by compiler specific implementations ONLY.
    And NO variable ever ends with underscores.
    The variable name should not have underscores either
    ( exceptions: constants that are all capitals ), so that
    leaves us with exactly ONE underscore maximum IF
    it is a member variable of a class.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  9. #24
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    oh... in accord with nv...

    >So my idea of Hungarian notation is when variables are named in a completely non-sensible way,

    well if that was what it was, then everyone here would hate hungarian notation...
    hasafraggin shizigishin oppashigger...

  10. #25
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    I think that it is quite the necessity. It is convenient and organized.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. hungarian notation
    By KIBO in forum General Discussions
    Replies: 61
    Last Post: 01-11-2010, 11:42 PM
  2. CamelCase VS Hungarian notation, which is better?
    By meili100 in forum C++ Programming
    Replies: 4
    Last Post: 04-22-2007, 10:31 PM
  3. Hungarian Notation
    By FOOTOO in forum C Programming
    Replies: 6
    Last Post: 05-20-2005, 09:35 PM
  4. Hungarian Notation POLL
    By maxhavoc in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 06-21-2004, 11:52 AM
  5. hungarian notation
    By confuted in forum C++ Programming
    Replies: 2
    Last Post: 07-28-2003, 02:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21