Live data from Hacker News

Ask HN: What is the coolest JS library out there?

news.ycombinator.com

81–90 of 95 posts

Re: Ask HN: What is the coolest JS library out there?

#81
post #45

PotatoSalad.js is the best. I bet a bunch of you actually searched for that on google. What's sad is that is probably the name of some obscure testing library. What have we come to...?

I made a broccoli.js once when I thought I needed a rudimentary canvas image editor, it never really went anywhere but over my head: https://github.com/kennethrapp/broccoli-js but it's honestly terrible and even mentioning it in this thread is a terrible thing to do. I'm going to go think about what i've done now, over in the corner, there.

I would be interested in this. Does it work?

Re: Ask HN: What is the coolest JS library out there?

#83

Personally, I think https://github.com/kripken/emscripten/wiki is mind-blowingly amazing. Check out the demos for sure.

did you see they compiled QT against emscripten recently. That's pretty insane if you ask me. Now they just need to compile KHTML too, so it's webkit all the way down.

[1] http://badassjs.com/post/43158184752/qt-gui-toolkit-ported-t...

Re: Ask HN: What is the coolest JS library out there?

#84
post #8

TypeScript. Fastest JS parser I've seen (at least in JS compared to coffeescript, esprima, narcissus, etc), bootstrapped in its own language, great type checker/inferencer, easy to follow codebase.

If you like TypeScript you should also checkout Haxe (http://haxe.org)

Re: Ask HN: What is the coolest JS library out there?

#85

http://browserify.org/ because it will fundamentally change how you approach writing and organizing front end code. The moment you stop writing boilerplate code to glue your disparate files together and start using a simple module system you will never look back. This is more than a library, it is a way of re-thinking how you can maintain js libraries going forward.

http://requirejs.org/ addresses the same problem (AMD style rather than nodejs require style)

AMD style is terrible and should be discouraged. It leaks how it does things too much into the source code and you again end up with boilerplate bs.

Re: Ask HN: What is the coolest JS library out there?

#86
post #74

http://browserify.org/ because it will fundamentally change how you approach writing and organizing front end code. The moment you stop writing boilerplate code to glue your disparate files together and start using a simple module system you will never look back. This is more than a library, it is a way of re-thinking how you can maintain js libraries going forward.

I found that browserify tried to do too much by emulating Node within the browser so wrote JoinJS which just implements CommonJS modules without trying to parse the JS files: https://github.com/olegp/joinjs

New version of browserify will be much leaner. Also, if you don't use the node modules it doesn't matter.

Your thing could use some tests if you hope for people to trust it :)

Re: Ask HN: What is the coolest JS library out there?

#87
post #48

The one that makes everyone's lives easier: jQuery. Its not sexy, but it gets the job done for pretty much everyone.

I did prefer prototype.js in the time of ol'. Never understood why jQuery took over it, sadly.

I never looked that close, but I thought that prototype extended the base objects with the prototype property? If this is the case, then it wasn't a great idea. Meta programming is acceptable when you control the compiler or spec of the language, but as ECMA specifications move forward, and those functions are added, you'll get conflicts. And you can't control what browser is interpreting your javascript.

Maybe I just didn't understand it well enough.

Re: Ask HN: What is the coolest JS library out there?

#88
post #48

The one that makes everyone's lives easier: jQuery. Its not sexy, but it gets the job done for pretty much everyone.

I did prefer prototype.js in the time of ol'. Never understood why jQuery took over it, sadly.

Because Prototype does what the name says, i.e. pollutes the prototype chain. Also, Prototype tries to monkey 'classical inheritance', whereas jQuery encourages chaining, which obviously people like more.

Re: Ask HN: What is the coolest JS library out there?

#89
post #45

Earlier quoted context omitted.

I made a broccoli.js once when I thought I needed a rudimentary canvas image editor, it never really went anywhere but over my head: https://github.com/kennethrapp/broccoli-js but it's honestly terrible and even mentioning it in this thread is a terrible thing to do. I'm going to go think about what i've done now, over in the corner, there.

I would be interested in this. Does it work?

As a proof of concept yes (scaling, rotation, moving the background work) but it doesn't do much yet. I wanted to make something like Irfanview that could handle basic transforms with a minimalist ui, but it still needs a ton of work. Drawing is more or less broken - I got as far as adding pixels to the canvas before other (paying) projects just got in the way.

When I figure out how to get it to work on a github page I'll have a demo up.

Re: Ask HN: What is the coolest JS library out there?

#90
post #6

I'm a huge fan of Enyo ( http://enyojs.com ). It's stupid-easy to get a native-feeling app running that works across (nearly) every modern device. Mostly, I love its UI components (which are expanded by the associated Onyx library), which means I have less lines of code to write -- which is always better.

add TideSDK and PhoneGap for the native-feeling trifecta
Post reply on HN