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.