News for hackers. Stuff that matters.
Re:JavaScript's world domination by LBarret on Wednesday March 25, 2015 @05:35AM (#9261919)
It"s the very strange mix of very bad ideas and very good ideas that's baffling. Some other languages are homogeneously bad (php) but provides less suprises than js, because of their regularity. js is bipolar/schizophreniac.
Re:JavaScript's world domination by pluma on Wednesday March 25, 2015 @06:47AM (#9262100)
JS is special because it has to be backwards-compatible.

It basically contains its entire history, from a PHP-like hack job that started it to the very elegant ES6/7. It's probably one of the few languages that expose their whole fossil record.

Re:JavaScript's world domination by sacado2 on Wednesday March 25, 2015 @09:53AM (#9262916)
Don't forget C++. Being older, it accumulated more cruft.
Re:JavaScript's world domination by sacado2 on Wednesday March 25, 2015 @09:52AM (#9262909)
Yes. We tend to forget javascript was the first mainstream language (no, CommonLisp is not mainstream) proposing lambdas & closures, for instance. In the 1990's, that was quite amazing. And, on the other hand, they couldn't implement the 'this' keyword correctly, among other trivial mistakes.
Re:JavaScript's world domination by fanf2 on Thursday March 26, 2015 @08:31AM (#9269025)
Perl 5 predates JavaScript by about a year.