Hungarian notation

In programming, Hungarian notation is a set of conventions for naming data objects in which a programmer adds a meaningful prefix of one or several characters to the object's name to identify what type of object it is.

IT Career Development and Training

RELATED TOPICS

+ Show More

In programming, Hungarian notation is a set of conventions for naming data objects in which a programmer adds a meaningful prefix of one or several characters to the object's name to identify what type of object it is. The conventions suggest, among other things, that programmers choose prefixes that are suggestive of the type of object named and are easy to remember. Consistency in naming is very important.

In one programmer's version of Hungarian notation, a form might have the prefix "frm" and, if the form name is "Switchboard," the extended name would be "frmSwitchboard." This makes it clear that the reference is to a form called "Switchboard," and not to some other type of object with the same name, such as a label (which might be called "lblSwitchboard"). The conventions were developed to define naming procedures that would help programmers create prefixes that would be easy to remember and would make objects easy to identify, both for themselves and for other programmers that might work with their code in the future.

Dr. Charles Simonyi developed the convention at Microsoft, where it is used in the Windows source code. Microsoft says it's known as Hungarian notation because the prefixes make the names seem to be non-English and also because Simonyi is from Hungary. Since Microsoft uses it extensively, many programmers outside Microsoft use it. Charles Petzold's use of Hungarian notation in his book, "Programming Windows," also has influenced many Windows programmers.

This was first published in December 2007

Continue Reading About Hungarian notation

Glossary

'Hungarian notation' is part of the:

View All Definitions

Dig deeper on IT Career Development and Training

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

File Extensions and File Formats

Powered by:

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close