4 ms·
I won't be switching to javascript from python anytime soon. Javascript took about half of the bad ideas from perl and mixed in a few bad ideas of its own into
by sreque 17y ago
I won't be switching to javascript from python anytime soon. Javascript took about half of the bad ideas from perl and mixed in a few bad ideas of its own into a not very good language.
Invoking a method on a primitive string silently fails and does nothing?
Javascript differentiates between primitive strings and object wrappers such that you have to write ugly code like what's shown here: http://www.planetpdf.com/developer/article.asp?ContentID=testing_for_object_types_in_ja http://www.planetpdf.com/developer/article.asp?ContentID=tes...?
Forgetting the var keyword makes a variable global?
No module or package system without hacks?
Passing in the wrong number of arguments into a function is normal behavior that doesn't cause an error? At least you have nice syntax to bind arguments to variables, which perl doesn't.
People think ECMAScript's implementation of prototype based programming is a good idea? I could do the same thing in python easily by only instantiating objects and adding functions and properties to them manually, and the syntax wouldn't be much worse than in javascript, but I don't, and neither does anyone else.
It's been a while since I've studied javascript so my memory of dumb things about the language has grown dim, but I honestly don't get how people think it is a good language, or should be used anywhere else than where we are forced to use it: in the browser.