Skip to content

Instantly share code, notes, and snippets.

@emre
Last active August 29, 2015 14:28
Show Gist options
  • Save emre/813ad92da51ae43f758a to your computer and use it in GitHub Desktop.
Save emre/813ad92da51ae43f758a to your computer and use it in GitHub Desktop.
code simplicity quotes

“The most famous error in this area is what we call “premature optimization.” That is, some developers seem to like to make things go fast, but they spend time optimizing their code before they know that it’s slow! This is like a charity sending food to rich people and saying, “We just wanted to help people!”

“You generally should not add comments that say what a piece of code is doing. That should be obvious from reading the code. If it isn’t obvious, the code should be made simpler. Only if you can’t make code simpler should you have a comment explaining what it does. The real purpose of comments is to explain why you did something, when the reason isn’t obvious. ”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment