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%

Hungarian Notation

This is a discussion on Hungarian Notation within the A Brief History of Cprogramming.com forums, part of the Community Boards category; hmm....never really thought about something like Code: char *a, *b, c; I think I'll steal that method from you, it's ...

  1. #16
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    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
    857
    For short program, I don't use it. But for big program... Hungarian notation!!
    Yoshi

  3. #18
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    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
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    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

  6. #21
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    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,139
    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.

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, 10: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

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