Hungarian Notation

Hungarian notation is an identifier naming convention in computer programming, in which the name of a variable or function indicates its type or intended use. There are two types of Hungarian notation: Systems Hungarian notation and Apps Hungarian notation.

Hungarian notation 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 a group of lower-case letters which are mnemonics for the type or purpose of that variable, followed by whatever name the programmer has chosen; this last part is sometimes distinguished as the given name. The first character of the given name can be capitalized to separate it from the type indicators (see also CamelCase). Otherwise the case of this character denotes scope.

Read more about Hungarian Notation:  History, Systems Vs. Apps Hungarian, Relation To Sigils, Examples, Advantages, Disadvantages, Notable Opinions

Other articles related to "hungarian notation, hungarian":

Sigil (computer Programming) - Hungarian Notation
... Related to sigils is Hungarian notation, a convention for variable-naming that specifies variable type by attaching certain alphabetic prefixes to the variable name ... Unlike sigils, however, Hungarian notation provides no information to the compiler as such, explicit types must be redundantly specified for the variables (unless using a language with ...
Hungarian Notation - Notable Opinions
... Martin (against Hungarian notation and all other forms of encoding) ". ... encoding system will mislead the reader." Linus Torvalds (against Systems Hungarian) "Encoding the type of a function into the name (so-called Hungarian notation) is brain damaged—the compiler ... can't necessarily check." Bjarne Stroustrup (against Systems Hungarian for C++) "No I don't recommend 'Hungarian' ...
Naming Convention (programming) - Metadata and Hybrid Conventions - Hungarian Notation
... Perhaps the most well-known is Hungarian notation, which encodes either the purpose ("Apps Hungarian") or the type ("Systems Hungarian") of a variable in its name ...