Skip to content

Instantly share code, notes, and snippets.

@viruschidai
Created June 7, 2014 11:38
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 viruschidai/80dff0ba0244a805377b to your computer and use it in GitHub Desktop.
Save viruschidai/80dff0ba0244a805377b to your computer and use it in GitHub Desktop.
When should you avoid adding comment to your code?
1. When it takes less time to read your code than to read your comment
2. When your code can be written in a more self-documented way
3. When your comment is simply repeat a method name or variable name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment