Skip to content

Instantly share code, notes, and snippets.

@yuanqing
Last active August 29, 2015 14:24
Show Gist options
  • Save yuanqing/50631353826a236cc79b to your computer and use it in GitHub Desktop.
Save yuanqing/50631353826a236cc79b to your computer and use it in GitHub Desktop.

How to Code

  • Flat over nested
  • Simple over complex
  • Referential transparency over stateful
  • Explicit over implicit/magic
  • A smaller/shorter program is a better program
  • Maintainability over being terse/parlour tricks
  • Concrete over abstract
  • Modular over monolithic; modules over frameworks/libraries
  • Fewer dependencies is better
  • Bytes matter for web sites/apps, particularly for mobile browsers
  • Name things well (it's not easy but worth the trouble)
  • Automated, repeatable tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment