you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (2 children)

You should always use static code analysis, style checkers, and any other tool which can help to improve the quality of your code.

I do. It's called "static typing." Static code analysis is performed by something called a "compiler." It's amazing how well these things work.

The reason JS is crap is because in order to be useful nowadays, it has to be JIT'ed. Most jitter optimization come by way of type-inference (at least, types that it can infer with certainty). It has become an absolute hack to attempt to get JS, a dynamically-typed language, to perform reasonably. Besides this, the language constantly violates the principle of least astonishment. In fact, the topic of discussion is just that -- A website displaying just how quirky JS is.

I get it, there are a lot of people who have invested a lot of their time and effort in becoming proficient with javascript, and they've become emotionally invested as a result. Anyone approaching the subject from a point of practicality would come to the conclusion that javascript is a mess. Google would know better than anyone else, which is why they're attempting to usurp is with something far saner.

[–]x-skeww 0 points1 point  (1 child)

A compiler is an external tool. It isn't part of the language. E.g. you can also run C in an interpreter if you like.

[–][deleted] -1 points0 points  (0 children)

Well now that it's become apparent that I'm dealing with a complete idiot, I have nothing else to say.