News for hackers. Stuff that matters.
Re:The abundance of JavaScript libraries by georgemcbay on Sunday May 10, 2015 @03:57PM (#9521110)
Probably a controversial opinion to post here (not in that I think it is unique, but rather that I think there will be a divide in people who agree strongly and those who disagree strongly), but I view the JavaScript framework/library situation as a damning indictment of how terrible the language is. A constant churn of attempts to build a solid foundation upon a bed of leaky sand, each ultimately failing because no matter how well they were engineered you can't get past the whole sand problem... and maybe the whole sand problem will solve itself by other means, but only at a very geological rate due to all of the committee politics surrounding browsers these days.

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.

Re:The abundance of JavaScript libraries by lhnz on Sunday May 10, 2015 @05:35PM (#9521417)
Can you define this leaky sand or is just bullshit?

There is definitely a lot of churn, but slowly but surely you are seeing certain functional programming approaches winning out.

And the language is progressing so much faster than similar dynamic languages like Python.

Re:The abundance of JavaScript libraries by brandonmenc on Sunday May 10, 2015 @05:50PM (#9521491)
> the language is progressing so much faster than

Because it was a haphazard design.

A lot of the progress is just Javascript catching up to thoughtfully designed languages like Python. That's a good and necessary thing, but the fact remains.

Re:The abundance of JavaScript libraries by lhnz on Sunday May 10, 2015 @07:38PM (#9521916)
Python ground to a halt around the time Python 3 was released and last time I looked it was still barely progressing. Meanwhile JavaScript has ES6, ES7, TypeScript, npm, Ramda.js.

It's long past 'catching up'. It's a healthy ecosystem.

Re:The abundance of JavaScript libraries by brandonmenc on Sunday May 10, 2015 @08:26PM (#9522050)
> JavaScript has ES6, ES7, TypeScript, npm, Ramda.js. It's long past 'catching up'

Javascript is definitely making great progress, but npm thrown in as an example of how it's "long past catching up?" That's like, bare-minimum required functionality.

I'm not trying to attack, but when JS evangelists cite something like npm as a zap-pow feature, skeptics roll their eyes - especially when they've been using pip/rubygems/cpan for a decade or two.

Edit: I realize now you were probably citing npm more as evidence of JS having arrived with a healthy ecosystem (true) than as evidence it's leapfrogged others.

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.
Re:The abundance of JavaScript libraries by vectorpush on Sunday May 10, 2015 @10:54PM (#9522448)
I think we see so much churn in JavaScript because we've forced the weight of the entire client side web onto the back of a single language. JavaScript must satiate the technical needs of all organizations across every consumer facing device and operating system. Like all languages, JavaScript has its weaknesses, so its not surprising that we find JavaScript to be a less than optimal solution for certain types of problems, but since JavaScript is generally the only option available for scripting logic in the browser, it's pretty natural that we see an explosion of libraries and frameworks to compensate for the fact that the JavaScript hammer is the only tool that exists in the client web universe.
Re:The abundance of JavaScript libraries by petjuh on Monday May 11, 2015 @02:05AM (#9522986)
That's what I've been wondering - why don't the browsers add a few more scripting languages, like python? If IE didn't exist, Chrome and Firefox could do it, just for fun, they're very open to new features.
Re:The abundance of JavaScript libraries by georgemcbay on Monday May 11, 2015 @02:10AM (#9523004)
These days I'd be far less surprised to see Microsoft and Google co-implement something with regards to new scripting language support than I would be to see Mozilla get involved.

Mozilla is basically cultish about JavaScript's place as the One True Web Language.

Re:The abundance of JavaScript libraries by sk5t on Sunday May 10, 2015 @04:23PM (#9521172)
Well said. In many ways picking a direction with JS is as bad as choosing an ORM... big upfront costs, a brief honeymoon, followed by eventual remorse, and finally more costs to transition to the next thing. Sometimes the smartest move is to avoid playing the game.
Re:The abundance of JavaScript libraries by raingrove on Sunday May 10, 2015 @04:43PM (#9521227)
True. In JS land, someone is reinventing module management, object/class model, property bindings, event handling, async helpers, and FP helpers every day.
Re:The abundance of JavaScript libraries by ttty on Sunday May 10, 2015 @08:16PM (#9522015)
If they didn't many of the best libs wouldn't' exits today.