When JSLint hurts your feelings, hug it out with Doug.
- There are some situations that are difficult to distinguish mechanically, so I now consider all of those cases problematic, even when they are not obviously wrong.
- You should be coding for readability and error resistance.
- The place to express yourself in programming is in the quality of your ideas, and the efficiency of execution. The role of style is the same as in literature. A great writer doesn't express himself by putting the spaces before his commas instead of after, or by putting extra spaces inside his parentheses.
- Many people think they have good reasons for doing things badly.
- The purpose of JSLint is not to make you feel good about inadequate coding standards.
- You are presuming the whitespace at the end of a line is either trivial or harmless. ~Austin Cheney
- JSLint is not able to determine which cases are troublesome and which are useful, so it warns on all cases.
- It is easy.
- It seems like good advice.
- With respect to spaces at the end of lines: From a code hygiene perspective, there is no good argument for keeping them. If you are arguing that there is no one in your organization with the programming skill to remove them, then it seems your organization is suffering from problems that JSLint cannot help you solve.
- If you have a Java mentality, they might be useful. I have a JavaScript mentality.
- It is much harder to write correct programs if you do not understand what the language actually does.
This comment has been minimized.
If you can’t read a program and be confident that you know what it is going to do, you can’t have confidence that it is going to work correctly.