Coding Standards
Coding Rules
- Thou shalt not commit to the master branch, pull requests only.
- Thou shalt not use magic values.
- Thou shalt not use static classes save for utilities.
- Thou shalt not write recursive methods without an exit case.
- Thou shalt spell things correctly.
- Thou shalt modularize all thine code.
- Thou shalt keep thine methods short.
- Thou shalt name thine variables with a descriptive name.
- Thou shalt name thine methods with a name that describes what the method does.
- Thou shalt think of the future while coding the present.
- Thou shalt make thy code self-documenting.
Please read: https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md
And: https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/
Javascript Styling Guidelines
- With dependency injections, (think AngularJS controllers) the expected pattern is to have the item name declared at the top and then use new lines after each dependency declaration.