PreviousUpNext

12.4  Internal identifiers

“The difference between the right word
  and the almost right word is the difference
  between lightning and a lightning bug.”

                                                —Mark Twain

Identifier length should be proportional to scope and inversely proportional to frequency of use.

Favor short old words over long neologisms.

Favor complete words over word fragments and abbreviations; use the latter only when they unquestionably improve readability.

Use verbs to name functions and nouns to name other values.

Comment abbreviations when introduced if not absolutely obvious.


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext