Skip to content

Instantly share code, notes, and snippets.

@icholy
Created August 22, 2014 15:31
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 icholy/423734595fef0dab39d8 to your computer and use it in GitHub Desktop.
Save icholy/423734595fef0dab39d8 to your computer and use it in GitHub Desktop.
  • early return
  • noun first in variable name
  • use descriptive variable/parameter names
  • descriptive code over pretty code
  • composition over inheritance
  • many simple/short functions
  • be boring and explicit
  • declare close to usage
  • avoid global state
  • don't document what you're doing, document why
  • not everything needs to be tested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment