Skip to content

The 10 Commandments

by Alex Peck on December 25th, 2008

To write biblically good code observe the 10 commandments.

1. Thou shalt not repeat thy self
2. Thou shalt inject dependencies
3. Thou shalt separate concerns
4. Remember to unit test
5. Honour the law of Demeter
6. Thou shalt not create global mutable state
7. Thou shalt not commit with failing tests
8. Thou shalt depend on abstractions, not on concretions
9. Thou shalt use assertions to validate thy assumptions
10. Thou shalt not covet thy neighbour’s programming language

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS