- Thanks received
- 10,016
Javascript is pretty powerful as a language but its limitation is that it runs on the browser.
However, that limitation was removed in 1995: LiveWire Developers' Guide
Javascript is pretty powerful as a language but its limitation is that it runs on the browser.
Perhaps re-read his post and you'll spot he never suggested any similarity except they were both crap.
Which also proves his complete ignorance of both.

I never said either were crap, just equally horrible. They're both scripting languages, and scripting languages are good for providing the glue between high level components created in proper programming languages. The problem is people have started to think these scripting languages can be used for proper programming, which whilst technically is true, doesn't mean that it's a good idea to do so.
Python seems to be based on the premise that there are some people for whom brackets and semicolons are terrifying, and whilst I can kind of understand why some people might think like that, that doesn't mean it's a better language than all the C-syntax based alternatives.
I never said either were crap, just equally horrible. They're both scripting languages, and scripting languages are good for providing the glue between high level components created in proper programming languages. The problem is people have started to think these scripting languages can be used for proper programming, which whilst technically is true, doesn't mean that it's a good idea to do so.
Python seems to be based on the premise that there are some people for whom brackets and semicolons are terrifying, and whilst I can kind of understand why some people might think like that, that doesn't mean it's a better language than all the C-syntax based alternatives. And like all these scripting languages, the real killer is the lack of static types. I've had to maintain bits of complicated Python, and I can't understand why anybody thinks it's a good idea to use a language where you can't work out what anything is. I suppose at least it has classes (Javascript's equivalent is ludicrous), but without static types you lose 90% of the benefit.
Which brings us back to ECMAScript4 / ActionScript or whatever you want to call it, which had proper classes and static typing (like most of us have been doing for 20 years), as well as scripting style dynamic properties for when that's appropriate. And it was being produced by the official standards bodies ready to go into all the browsers and become a proper powerful modern object-oriented language for the web. But no, Apple and co (okay so it wasn't just Apple, but it seems appropriate to blame them) decided that it was too powerful and useful.
And the double irony is that all the recent Javascript engine speed hype (I was reading something today about IE10's improved JS performance) largely centres on clever techniques to detect the use of classes and object oriented programming at runtime (because all the analysis shows this is how serious programmers work) and convert the dynamic types back to static ones. If they'd just built it into the language a) it'd work much better, and b) it would have saved a whole lot of effort.
But as somebody who's written a JS interpreter, and integrated Microsoft's, Google's and QT's JS engines into not-a-browser applications, and done a load of JS programming for Flash, I'm probably just showing my ignorance. Sorry.
I would suggest you delete that post it makes you look clueless.I don't know there is a metric which establishes how good/crap a language is objectively. For mainstream application development I think JS comes close though... it's just a mess where code errors are hard to find and dev tools are lame.Which also proves his complete ignorance of both.
There's a very good reason for hating brackets, and that is non-English keyboards. My Swiss keyboards for example require various combinations of Alt, Alt Gr and Alt + Shift to get at curly or square brackets, the pipe symbol and so on (and of course with subtle differences between laptops and external keyboards, Apple and PC keyboards... I bought a US keyboard to get around that.

I have to admit in my (slightly drunken) rant the other night I hadn't considered the Swiss.![]()

scripting languages are good for providing the glue between high level components created in proper programming languages