Variable Name Conventions
Dave Albert Harrison
dah at cup.portal.com
Sun Jan 21 11:27:36 AEST 1990
I understand that Microsoft and many Microsoft Windows programmers
favour the "Hungarian Notation" named after a Hungarian at Microsoft.
One prefixes all variable names with a type indicator (e.g., l_count
indicates long and sz_name indicates a null-terminated string). This
allows one to look at the body of the code and instantly recognize
variable types without having to look for their definitions.
The BBN (Bolt, Beranek & Newman) convention asks you to capitalize
separate words within a variable name (e.g., StringLength).
Many programmers prefix procedure names with a subsystem identifier.
This avoids naming conflicts and helps you search for procedure
definitions. One doesn't usually need to do this with variable
names because one tries to avoid cross-subsystem variable references.
More information about the Comp.lang.c
mailing list