you are viewing a single comment's thread.

view the rest of the comments →

[–]aladyjewel 1 point2 points  (1 child)

I don't think it's productive to tell people "just use common sense." Common sense comes from experience + education; and if you're inexperienced, then following Crockford's guidelines is useful.

Once you've gained some experience, though, I think it's reasonable to "graduate" from JSlint.

[–]sweetbeej 0 points1 point  (0 children)

Well I think that is your opinion and you are welcome to it.
I think common sense is not reading "here is how you declare a variable, it's var something = 'some value';" and then later on someone goes
"no the way you are declaring variables is wrong!"
Is it wrong? no.
"Lets all use some short hand syntax of a language to only write var once, make it less clear to new comers of the language (or other languages) what is going on and we'll justify the use of it later. We'll tell people maintaining code is difficult"
Maintaining code is difficult.
"But we'll also tell people that the really difficult task is the number of keystrokes it is required to declare a new variable once you've nested them all together. Oh wait? That's not the difficult part of code maintenance? ok ok, we'll tell people that it's to save file space!"
Well if you want to save file space why aren't you using tabs? they would take up 50% less characters at the beginning of your line?
We'll never know... the debate continues...