Each truth that I discovered became a rule that served me afterwards in the discovery of others.
René Descartes, Le Discours de la Méthode
Several chapters contain rules or guidelines that summarize a discussion. The rules are collected here for easy reference. Bear in mind that each was presented in a context that explains its purpose and applicability.
Use descriptive names for globals, short names for locals.
Use active names for functions.
Indent to show structure.
Use the natural form for expressions.
Parenthesize to resolve ambiguity.
Break up complex expressions.
Be careful with side effects.
Use a consistent indentation and brace style.
Use idioms for consistency. ...