News for hackers. Stuff that matters.
Re:The abundance of JavaScript libraries by orangecat on Sunday May 10, 2015 @04:16PM (#9521155)
Completely agree, and I say this having written mostly JavaScript professionally for the last several years. It's sad to think of the millions of engineer-hours spent trying to make JS usable for today's applications.

IOW, JavaScript is going to be great next year. Just like it was going to have been each year for the past 10 years or so.

ES6 might actually be ok, in the sense of "about as good as Python 2.3".

Re:The abundance of JavaScript libraries by coldtea on Sunday May 10, 2015 @04:37PM (#9521203)
>IOW, JavaScript is going to be great next year. Just like it was going to have been each year for the past 10 years or so.

Well, ES6 wasn't available "the past 10 years or so", whereas it will be next year, and recent 6-to-5 transpilers make it a backwards compatible option too.

>ES6 might actually be ok, in the sense of "about as good as Python 2.3".

Well, it's more ubiquitus that Python, more dynamic, more modern (if you include ES6 features), tied to a more powerful environment (the web), and beats the shit out of Python regarding execution speed.

Re:The abundance of JavaScript libraries by ForHackernews on Sunday May 10, 2015 @08:01PM (#9521978)
> Well, it's more...

None of these things are features of the language itself (except arguably "more modern", whatever that means). They're all byproducts of the fact that JS is the only language that runs in a browser. JavaScript has basically succeeded dramatically in spite of itself by piggybacking on the runaway success of the web/browsers.

Re:The abundance of JavaScript libraries by coldtea on Sunday May 10, 2015 @08:23PM (#9522041)
>They're all byproducts of the fact that JS is the only language that runs in a browser.

So? The end result is the same, Javascript has these attributes and Python doesn't.

Re:The abundance of JavaScript libraries by agumonkey on Sunday May 10, 2015 @04:39PM (#9521212)
I was under the impression that all dynamic languages were converging around a similar set of core principles.

  - builtin type literal
  - closures and fp idioms
  - generators
  - asynchrony
  - comprehensions
Re:The abundance of JavaScript libraries by smrtinsert on Sunday May 10, 2015 @09:12PM (#9522156)
closures are a horrible anitpatterb imo. abritrary anonymous state potentially from anywhere in your application - how can that be a deairable goal.
Re:The abundance of JavaScript libraries by agumonkey on Monday May 11, 2015 @05:08AM (#9523448)
It's simple anonymous encapsulation. I'm fond of FP idioms so I may be biased but most of the time I'd take closure based combinators over Objects.