[WEBINAR] Application Acceleration: Faster Performance for End Users

Hungarian Notation

Definition - What does Hungarian Notation mean?

Hungarian notation is a convention for naming and differentiating between data objects. When Hungarian notation is used, a programmer adds an indicator prefix to each object name to easily and readily identify its type.

Additional prefixes also may be used to identify the function, thread or other object feature. This is very important when a program expands into multiple modules and threads, as remembering every object's purpose is difficult if a naming convention is not used.

Techopedia explains Hungarian Notation

Most programmers add prefixes to a meaningful variable name of choice. For example, a programmer creating a Boolean variable whose function is to store a result indicating a summation operation’s success or failure might name this variable BoolSum. If many threads conduct similar functions, he may use the terms BoolSumThread1 and BoolSumThread2 as meaningful names that differentiate the variables.

Meaningful naming conventions become more important when a project is a collaborative effort by many developers. A combination of appropriate naming conventions and simple program comments are among the best practice recommendations in such cases.

Dr. Charles Simonyi, a Hungarian-American computer software executive, is credited with creating the Hungarian notation. However, when Dr. Simonyi’s colleagues read the variables he named according to his new convention, they discovered the names were not in English.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.