774 shaares
10 private links
10 private links
2 results
tagged
practices
So far, best quote:
If a function description includes an "and", it's wrong
Functions should do one thing and one thing only. When you're writing the function documentation and find that you added an "and", it means the function is doing more than one thing. Break that function into two and remove the "and".
How to: avoid typeof and ask JavaScript objects to describe themselves.