The Psychology of Quality and More |
CHAPTER 5 : Naming
5.12 Summary· Don't make names too long. Establish guideline lower and upper limits. · Use abbreviations to reduce length of names. · Keep a list of standard abbreviations. · Severely limit the use of single character (or very short) variables. · Use a consistent method to separate out words in names. · Spell words using correct English spelling. · Make names clearly unique. Use the 'telephone test'. · Use underscores singly and within the name. · Beware of numerals looking like letters. · Name functions with verb-noun combinations. · Name functions that return a non-status variable, as a variable. · Use standard prefixes to identify items in functional groups. · Name variables with noun-abstract noun combination. · Name structures with nouns and their members with abstract nouns. · Use 'Is' (or similar verbs) in booleans (or use 'b' prefix). · Consider using single letter prefixes to identify types. · Use capitals for replacement items, including macros. · Name files like variables, describing the functions they contain. · Use '.c' and '.h' for source code and header file suffixes. · Name directories like nested structures.
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x |
Site Menu |
Quality: | Quality Toolbook | Tools of the Trade | Improvement Encyclopedia | Quality Articles | Being Creative | Being Persuasive | |
And: | C Style (Book) | Stories | Articles | Bookstore | My Photos | About | Contact | |
Settings: | Computer layout | Mobile layout | Small font | Medium font | Large font | Translate | |
You can buy books here |
And the big |