HACKER Q&A
📣 f1shy

Is hungarian notation still around?


I work in a big company, we write "mission critical" software. And many people (at least 90%) want to use hungarian notation. Because management also likes it, we MUST. The variety of notation used is prefix_NameInCamelCase_sufix where prefix is the use of the variable (like Systems hungarian) 2 to 4 chars, then the name, which typically is 4 to 6 characters, and a sufix, 2 to 4 characters, the type.

I get frustrated trying to advocate for not using it anymore.

Do you have such experience. Are you for hungarian notation? change my mind?!


  👤 roeles Accepted Answer ✓
I have seen it in a VB6 codebase, but never used it. I can imagine that it is going to make refactoring interesting. Better keep everything up to date, or it can become misleading. Tooling might help with this, but this is probably the same tooling that can help you work without Hungarian notation. (vim user here, so wouldn't know).

I am working on a C codebase which exclusively uses do-while loops with manual initialization and incrementing of the loop counter. Pick your battles. Lead by example if you think you know better.


👤 MattGaiser
I liked it before it became common to add the type to Python functions/before I used IDEs that did a lot of that work for me.

Before that, I would spend a lot of time figuring out how data structures changed as the program went on.

Now I view it as redundant.

Are you using good tools at work? What language are you using?


👤 mrkeen
What language are you writing it in?

What safety/readability is it giving you that's not provided by your compiler/IDE?