Skip to content

Instantly share code, notes, and snippets.

@Freeaqingme
Created March 22, 2014 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Freeaqingme/9713429 to your computer and use it in GitHub Desktop.
Save Freeaqingme/9713429 to your computer and use it in GitHub Desktop.
==Non-optional Coding Guidelines (TBD)==
* Newly added or modified methods are no longer than 20 lines.
* Any new methods are non-static. Unless everybody agrees this really poses an exception.
* A method has 10 params max. If it gets more, it needs refactoring.
* No params are provided via arrays to a method (behavior should be the same no matter if an array has 1 or 1M elements).
* A method does one thing, and one thing only.
* The 'else' statement is not used.
* We don't duplicate code, any code.
* Any method interacts with a maximum of 7 other objects.
* All objects are instantiated using the DI container.
* Wherever possible type hinting is used
* We don't nest within a method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment