Skip to main content

Coding Standards

Coding Rules

  1. Thou shalt not commit to the master branch, pull requests only.
  2. Thou shalt not use magic values.
  3. Thou shalt not use static classes save for utilities.
  4. Thou shalt not write recursive methods without an exit case.
  5. Thou shalt spell things correctly.
  6. Thou shalt modularize all thine code.
  7. Thou shalt keep thine methods short.
  8. Thou shalt name thine variables with a descriptive name.
  9. Thou shalt name thine methods with a name that describes what the method does.
  10. Thou shalt think of the future while coding the present.
  11. 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

  1. 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.

Clean Code Article

Clean Code.pdf