News for hackers. Stuff that matters.
Re:My gripes with JavaScript by maratd on Wednesday June 22, 2011 @11:48AM (#2683655)
The fact that everything you said is true makes JavaScript an even more amazing language. How many languages could survive 15 years without change and still remain relevant? And not only relevant, but expand their influence?

Certainly this is mostly due to its unique position on the browser, but the language had to be flexible enough to fill that role and more. That's amazing.

Re:My gripes with JavaScript by Someone on Wednesday June 22, 2011 @12:08PM (#2683764)
IMO, it accomplishes this not as much by being good, as by being a parasite that infects web browsers. At that, it is so good that some people think the DOM and JavaScript are in a symbiotic relationship.

Yes, that is tongue-in-cheek, but without JavaScript, web browsers would have found another language; without web browsers, JavaScript would long have been forgotten.

Re:My gripes with JavaScript by maratd on Wednesday June 22, 2011 @12:58PM (#2683991)
> IMO, it accomplishes this not as much by being good, as by being a parasite that infects web browsers.

My memory is a bit foggy, but I recall Microsoft throwing a bunch of things at the browser in the beginning. You can specify the language in the script tag. VBScript anyone?

It wasn't like JavaScript didn't have competition ... it just won a very long time ago.

Re:My gripes with JavaScript by Someone on Wednesday June 22, 2011 @01:43PM (#2684213)
In my memory, JavaScript won because it had market penetration, it did not get market penetration because it won.

It had market penetration because it was included with Netscape Navigator.

Yes, it also was good enough at that time, but almost anything would have been, in a time where a ten-line script was huge. I do not think that it would have won against say VBScript if the latter would have been available on the same set of browsers.

Re:My gripes with JavaScript by chc on Wednesday June 22, 2011 @03:46PM (#2684810)
Microsoft threw one other language into Internet Explorer, and as far as I can recall didn't push it any harder than JavaScript. No other scripting language was ever implemented in any other browser. To call VBScript a competitor is being overly generous. JavaScript was really the only option for DHTML.
Re:My gripes with JavaScript by jerf on Wednesday June 22, 2011 @11:57AM (#2683701)
I agree, except that "without change" is a bit strong. Still, the basic structure is all there from the beginning, and while warty it has managed to support some non-trivial apps. I'd count it a win overall for the author, in a very tough field.
Re:My gripes with JavaScript by munificent on Wednesday June 22, 2011 @04:24PM (#2685064)
> How many languages could survive 15 years without change and still remain relevant? And not only relevant, but expand their influence?

I can think of one other, and for the same reason: make. Both languages are still around because it's near impossible to replace them, no matter how much they may suck. They aren't timeless, they're calcified by being a part of some infrastructure that exists on millions of machines.

Re:My gripes with JavaScript by mattmanser on Wednesday June 22, 2011 @03:22PM (#2684686)
Huh? It's the only language that works on browsers. That's how it got 'amazing'.