View Poll Results: Is Hungarian Notation good or bad?

Voters
25. You may not vote on this poll
  • It is good.

    8 32.00%
  • It is bad.

    8 32.00%
  • I don't care.

    9 36.00%
  • What is Hungarian Notation?

    0 0%

Thread: Hungarian Notation

  1. #16
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    hmm....never really thought about something like

    Code:
    char *a,
         *b,
          c;
    I think I'll steal that method from you, it's niiicccee

    I really don't like hungarian notation though...it's...ugly! I always try to make my source pretty ...but still. I'd never be caught dead writing code like:

    unsigned int *g_puiVariable;

    I'm much happier with

    unsinged int *Variable;

    and running my mouse over the variable to see what type it was if I ever needed to...

  2. #17
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    For short program, I don't use it. But for big program... Hungarian notation!!
    Yoshi

  3. #18
    I don't like it, because if I ever want to typecast, I have to screw around with the variable name, and I might have to change the whole program. That would be unfortunate.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  4. #19
    Errr, not typecast. But, if I was using an int, and I needed to change it to a long because the number needed a decimal point, then it would be kind of dumb.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  5. #20
    Registered User jasrajva's Avatar
    Join Date
    Oct 2001
    Posts
    99
    its rotten

    millions of lines of the linux kernel dont use hungarian (or for that matter any) notation

    and yet its more stable than win which does


    i guess its better to write ample comments in your code rather than resorting to

    for(int Ii = 0; Ii ...etc
    jv

  6. #21
    i guess its better to write ample comments
    The one good thing to be said for hungarian notation is that you're never going to do this:

    iNum = 298500;

    or this

    ulNum = -298500;

    Not that its very likely anyhow, but...
    I think I'll steal that method from you, it's niiicccee
    Why thank you. Glad to have contributed something.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  7. #22
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Poll closed. Please don't vote on polls older than 3 months, it's like post-bumping.
    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.

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, 09:31 PM
  3. Hungarian Notation
    By FOOTOO in forum C Programming
    Replies: 6
    Last Post: 05-20-2005, 08:35 PM
  4. Hungarian Notation POLL
    By maxhavoc in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 06-21-2004, 10:52 AM
  5. hungarian notation
    By confuted in forum C++ Programming
    Replies: 2
    Last Post: 07-28-2003, 01:19 PM