Skip to content
Mason Bially edited this page Mar 19, 2014 · 1 revision

These are the new naming conventions per The Grand Refactor.

Variable Styles:

Classes

Classes are CamelCase WithAStartingUpper.

Function Arguments/variables

Function arguments and variables are lower_case_with_underscores.

Class variables

Class variables and functions are lowerStartingCamelCase.

  • protected/private variables: _lowerStarteringCamelCaseWithLeadingUnderscore.
  • constant: c_lowerStarting.
  • static: s_lowerStarting (unless public on a namespace/object, in which case, normal variable rules).

On Abbreviations/Acronym

Words which would otherwise be all capital letters should be CamelCased or lower cased as normal:

  • FBB Manager: FbbManager, fbb_manager

Exceptions:

  • Decorators are always completelylowercasewithnounderscores.

Common Nouns

  • Module: Modules are what we are managing here (was plugin).

Clone this wiki locally