Created
March 22, 2014 20:06
-
-
Save Freeaqingme/9713429 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==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