Hungarian Notation

The first evolution of naming conventions was the use of single character prefixes (for example, Dim lWidth As Long and Dim iHeight As Integer ). The single-character prefix became popular, but it was doomed from the beginning. There are only 26 unique characters (a–z) available for single-character prefixes, but there are many different types of variables and objects, and many of them share the same first letter.

A better naming convention eventually replaced the single-character prefix. This convention—using a three-character prefix to denote data types and control types—is known as Hungarian notation, partly because its creator, Charles Simonyi, was originally from Hungary, and partly because these prefixes tend to make ...

Get Practical Standards for Microsoft® Visual Basic® .NET, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.