Skip to content

Instantly share code, notes, and snippets.

@GGAlanSmithee
Last active August 23, 2017 07:09
Show Gist options
  • Save GGAlanSmithee/a0116090a196b81b9dd377727508ce7f to your computer and use it in GitHub Desktop.
Save GGAlanSmithee/a0116090a196b81b9dd377727508ce7f to your computer and use it in GitHub Desktop.
Principles I like

Principle of least astonishment

a component of a system should behave in a manner consistent with how users of that component are likely to expect it to behave

To avoid premature optimizations

make it work, make it right, make it fast

S.O.L.I.D (for object-oriented programming)

  • S - Single-responsiblity principle
  • O - Open-closed principle
  • L - Liskov substitution principle
  • I - Interface segregation principle
  • D - Dependency Inversion Principle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment