Skip to content

Instantly share code, notes, and snippets.

@thiagodelgado111
Forked from IngmarBoddington/mantras
Last active February 20, 2016 15: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 thiagodelgado111/77dfeb24af389c1396e6 to your computer and use it in GitHub Desktop.
Save thiagodelgado111/77dfeb24af389c1396e6 to your computer and use it in GitHub Desktop.
Coding Mantras
* Don't Repeat Yourself - DRY
- Don't repeat code
- Use reusability
* Keep It Simple Stupid - KISS
- Don't overcomplicate for it's own sake
* Don't make me think.
* Program to an interface.
* Composisition over inheritance.
* Do heavy operations in batch.
* Write Code for the Maintainer (No, you'll not fix that later)
* Yes, somebody will see that later and maybe they will need to fix that, so make it legible.
* Comments should help to understand feature, not how your code works.
* Filter & escape.
* Don't leave broken windows.
* You ain't gonna need it yet
* Ask yourself what is the reason it all exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment