Skip to content

Springroll Code Styleguide

yanshcherbakovatredspace edited this page Oct 11, 2016 · 1 revision

Springroll Code Styling Conventions

Springroll's code style follows minimal conventions so that it is flexible to suit most developers' coding styles. However the following code conventions should be followed when contributing to the Springroll library:

  • Curly braces should be on their own lines
  • Limit lines to 100 characters
  • Use hard tab indentation
  • Private variables should have a leading underscore
  • Use camel case for all variables and function names
  • Use pascal case for classes
  • Use all caps for constants