3 ms·
What are the problems with Javascript you speak of? The libraries hiding you from terrible bits, at least the ones I use, have to do with the DOM and not with J
by jonknee 14y ago
What are the problems with Javascript you speak of? The libraries hiding you from terrible bits, at least the ones I use, have to do with the DOM and not with Javascript.
- georgemcbay 14y agoVariable scoping, unavoidable global namespace pollution, === vs == insanity, etc.
- shawndellysse 14y agoBut how do libraries help you from that?
- georgemcbay 14y agoKitchen sink libraries like jquery + jquery ui save you from having to write much JavaScript at all beyond basic glue code. The less JavaScript I write, the happier I am. This is in stark contrast to other languages I work in where I actually like to roll my own frameworks.
- pooriaazimi 14y agoLast week I learned about another crazy "feature": Function hoisting http://elegantcode.com/2011/03/24/basic-javascript-part-12-function-hoisting/ http://elegantcode.com/2011/03/24/basic-javascript-part-12-f...
- PommeDeTerre 14y agoThe problems should be blatantly obvious to developers who have used languages other than JavaScript and PHP (which both have many of the same flaws). Once you've studied and used languages like C, C++, Python, Java, C#, Haskell, Scheme, Erlang and Standard ML, you'll see what we mean when we say that JavaScript is a very flawed language. Pick any of its features, and compare that feature to the equivalent feature in the other languages. JavaScript's approach will generally be the worst of all of them.