Leszynski naming convention
The Reddick naming convention was established in 1992 first mentioned in many books and journals, and was for many programmers as a guide for the naming of variables. She also plays in the. NET still play a role. By convention, it is very easy for other programmers to understand the importance of the variable already reading. As an example of the need variables such as x, i, i1 be mentioned whose meaning is not clear from the name, and therefore needs to be taken out of context.
The Leszynski naming convention ( or LNC) is a variant published by Stan Leszynski specifically for use in the development of Microsoft Access .. Although LNC is now often used in the Microsoft Access community and default in Visual Basic programming, is they are not widely used in other programming languages.
Explanation
For the naming of variables, there are four building blocks
[ Prefix ] [ type abbreviation ] [ base name [ suffix ] ]
Explanation
For example, Min, Max, Cnt (Count), Lim, First, Last
Selection of possible type abbreviation
Prefixes
The prefix can still be a Indizie before and are then added:
For example
- GintKundenID - global Integer " CustomerID "
Examples
Simple:
By day:
- StrfName, strfTelefon strfAnschrift, strfPlzOrt for a form, for example,
With suffix
- StrName1, strName2, ...
- StrInputCount ( Count is here the suffix )