You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paddatrapper edited this page Sep 30, 2014
·
1 revision
To help make code more readable, understandable, and consistent, each contributor should follow the set guidelines lain out below. If you disagree with something or come across a style that has not been decided upon, make an issue or a pull request respectively for discussion on the best style. The standard will be decided based on either majority rule or official documentation (i.e. oracle coding standard).
Spaces not tabs
Space width is 4
No beginning/trailing empty lines
Each file should start with an import statement if necessary single-spaced
After class declaration and between class methods, there should be a space.
Within methods, there should be no spaces unless to separate specific chuncks of code (i.e not for if statements, return values, or loops)
Opening curly braces appear a space after the closing parentheses, not directly after.
Closing curly braces appear on own line unless followed by an else etc. which will be a space after the curly brace.
Comments should have one space after "//"
Comments 4 or greater in length should be multi-line commented