News for hackers. Stuff that matters.
Re:Poll: Suggestions please, which JavaScript library? by lux on Saturday June 07, 2008 @04:14PM (#211684)
jQuery has been a huge time saver for me, highly recommended. I did look at pretty much all of these before settling on it, and haven't regretted it at all. jQuery is amazingly easy to get started with, very concise, but also amazingly expressive and flexible without sacrificing readability or conciseness.
Re:Poll: Suggestions please, which JavaScript library? by lux on Saturday June 07, 2008 @04:15PM (#211685)
I've also done a fair bit with Prototype/Scriptaculous, but it just seems clunky and excessive in comparison to jQuery now.
Re:Poll: Suggestions please, which JavaScript library? by rufo on Saturday June 07, 2008 @05:20PM (#211723)
Yes... there's nothing really wrong with Prototype; it's just that jQuery feels far leaner (both in terms of API and in codesize) while doing most of what I typically need out of Prototype/Scriptaculous.

I'd say either of them would be fine, but there does seem to be more momentum behind jQuery as of late.

Re:Poll: Suggestions please, which JavaScript library? by sc on Saturday June 07, 2008 @11:33PM (#211878)
But that's just it, it just "feels" far leaner. jQuery, uncompressed and unminified, is almost as bulky as Prototype (100 KB vs. 124).

Prototype does a lot in that extra 24 KB, is faster on some benchmarks, and I just like the way the code looks. If you just minify and gzip Prototype, you're looking at a much lighter footprint.

In the end, none of the frameworks are very lean: though Mootools and YUI are at least modular.

Re:Poll: Suggestions please, which JavaScript library? by rufo on Sunday June 08, 2008 @02:35PM (#212204)
That's not true though... jQuery, without any plugins, supports basic animation out-of-the-box (enough for the applications that I have been writing lately). Prototype requires scriptaculous on top of that if you want to write effects, which at a minimum is an additional 40kb for the effects module.

I know that prototype and scriptaculous provide more functionality, but my point is that jQuery is providing enough of what I need from both libraries while still being smaller.

Seriously though - I've written both and I'd find it hard to go wrong with either. jQuery is more the way I've been leaning of late, but were it to suddenly disappear off the face of the earth tomorrow I'd be fine with Prototype/Scriptaculous. To each, his own. :-)

Re:Poll: Suggestions please, which JavaScript library? by sc on Sunday June 08, 2008 @03:21PM (#212243)
I agree with you entirely :)

I actually find both to be a bit heavy. I don't necessarily want animations out of the box, so that makes jQuery a bit more bloated to me.

I also don't necessarily want all that Prototype offers for all of my projects.