Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!sun-barr!newstop!sun!imagen!atari!portal!cup.portal.com!dah From: dah@cup.portal.com (Dave Albert Harrison) Newsgroups: comp.lang.c Subject: Re: Variable Name Conventions Message-ID: <26160@cup.portal.com> Date: 21 Jan 90 00:27:36 GMT References: <36190@cornell.UUCP> <1990Jan19.183036.24440@utzoo.uucp> <983@excelan.COM> Organization: The Portal System (TM) Lines: 15 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.