Hungarian notation
Hungarian notation is a naming convention in computer programming, in which the name of an object indicates its type and intended use. There are two types of Hungarian notation: Systems Hungarian notation and Apps Hungarian notation. This document refers to Systems Hungarian notation. See external links for Apps Hungarian notation.
Related Topics:
Naming convention - Computer programming - Object - Type
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
It was designed to be language-independent, and found its first major use with the BCPL programming language. Because BCPL has no data types other than the machine word, nothing in the language itself helps a programmer remember variables' types. Hungarian notation aims to remedy this by providing the programmer with explicit knowledge of each variable's data type.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
In Hungarian notation, a variable name starts with one or more lower-case letters which are mnemonics for the type or purpose of that variable, followed by whatever the name the programmer has chosen; this last part is sometimes distinguished as the given name. The first character of the given name is capitalized to separate it from the type indicators (see also CamelCase).
Related Topics:
Mnemonic - CamelCase
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
While the notation always uses initial lower-case letters as mnemonics, it does not prescribe the mnemonics themselves. There are several widely used conventions (see examples below), but any set of letters can be used, as long as they are consistent within a given body of code.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ Table of Content ~
| ► | Introduction |
| ► | Similar notations in other programming languages |
| ► | Examples |
| ► | Origin |
| ► | External links |
~ What's Hot ~
~ Community ~
| ► | History Forum Come and discuss about History, Civilizations, Historical Events and Figures |
| ► | History Web-Ring A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site. |
and are licensed under the GNU Free Documentation License.
Lexicon - Privacy Policy - Spiritus-Temporis.com ©2005.