News for hackers. Stuff that matters.
Re:JavaScript's world domination by samspot on Tuesday March 24, 2015 @05:33PM (#9259647)
It has awful parts that should be avoided. Once you learn to avoid them you can have a great time. This isn't that different from most other languages. I think javascript has just been more heavily complained about. There is also an automatic look-down-your-nose tendency that most of us started with, including myself. Once I decided to learn more than the bare minimum I became very happy with it.
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.
Re:JavaScript's world domination by cognivore on Tuesday March 24, 2015 @07:01PM (#9260147)
>> It has awful parts that should be avoided. Once you learn to avoid them you can have a great time. <<

Oh, I imagine my copy of Crockford's "The Good Parts" is more well thumbed than most, and I do my utmost best to keep it all clean, but having a great time I am not.

Re:JavaScript's world domination by Dewie on Tuesday March 24, 2015 @05:53PM (#9259764)
> This isn't that different from most other languages.

Based on what people tend to complain about, some languages have more should-be-avoided parts than others. I guess no language is perfect... but that is so obvious that it doesn't need to be mentioned. Yeah, no language is perfect. But it's still interesting to see which ones are the least "perfect".

I don't get this tendency to want to muddy the waters with appeals to "nothing is perfect". Nothing is perfect, but some things sure seem to suck 5 times or more than other things.

(For that matter - it actually does seem like there are languages where you at least don't have to actively avoid parts of the language. Maybe they're not the best or currently the ones which are recommended, but it's not like people say that you should avoid them because they might trip you up in a weird way.)

Re:JavaScript's world domination by vkjv on Tuesday March 24, 2015 @06:23PM (#9259915)
I would far prefer a language that has parts that I need to avoid than one that is completely missing parts I really want.
Re:JavaScript's world domination by ufo on Tuesday March 24, 2015 @06:36PM (#9260004)
But what features does JS have that no other language has, other than the ubiquity of the browser as a platform? JS has been mostly frozen ever since it was created in the mid 90s and you also don't have much to work with when it comes to the standard library.
Re:JavaScript's world domination by wtbob on Tuesday March 24, 2015 @09:23PM (#9260724)
> But what features does JS have that no other language has, other than the ubiquity of the browser as a platform?

That's its only distinguishing or redeeming feature I can see. If you had a free hand to choose, would you ever want JavaScript?