Latest: buggy behaviour of parent:: in PHP 5.3.3

Content with Style

Web Technique

Javascript libraries

by Matthias Willerich on April 25 2008, 03:06

If you came across some of my comments in other blogs about this subject, you probably know already that I’m a moo-man.
moo.fx, the addons moo.dom and moo.ajax, I found them really easy to use.
They have been derived from the early releases of prototype (which I initially used as well), and the mentioned libraries come with a lite version of that, stripped to the bear essentials. Now mad4milk has released their mootools, basically a rewrite of the existing libraries, and a nice downloads page where you can mix and match modules for your needs, compiled into one handy file.
If you want to check or extend the code, download an unpacked version for your perusal, only to use a packed version when going live. So many things can be done with such little files. Crazy.
It also incorporates a version of Dean Edwards’ DOMContentLoaded.

Mike’s library of choice is jQuery, which itself stems from prototype (and it’s partly based on moo.fx, too). It came up with the same concept of keeping the filesize low, and it’s selling point must be the excellent documentation. It possibly used to be the pick and mix download panel, but that’s “borrowed” back and improved by mootools now.
They have in turn released the first issue of Visual jQuery magazine to help their and their developer community’s cause.
But the biggest present for their own first birthday must be the release of jQuery 1.1 a couple of days ago. The improvements seem massive, and I’m very tempted to switch…

Both of these come from prototype, which I got to know around the same time as the Dojo Toolkit. Prototype is very well integrated into Ruby on Rails, and liked by many in combination with the UJS Rails plugin. Sadly, both prototype and dojo are, compared to the aforementioned libraries, quite heavy, and I don’t need their particular features in my projects.

Content with Style’s own Pascal uses mainly moo.ajax and Behaviour to easily register, well, behaviours on dom elements. He extends those with custom written object literals in order to ensure separated scopes.
All of us tend to pick and mix for our needs, extending where necessary, always with an eye on filesize.

Of course there’s a million more javascript libraries, and a bazillion ways to use them. That leads me to the question: What do you use? Is it in commercial projects, and where do you see the importance of a filesize/used code ratio? Have you abandoned other frameworks because you found something more tailored to your needs?

Comments

  • Dan has an interesting post up on his site asking for peoples’ Javascript essentials. It’s funny but those little scripts he lists do cover the majority of the stuff I do… Still, with jQuery weighing in at 19K, it’s hard resist using it all the time!

    by Mike Stenhouse on January 17 2007, 09:37 - #

  • yep, jquery here too. i’ve not dug around as much as i maybe could have but i find the community, documentation and ever expanding list of genuinely useful plugins extremely helpful. i’ve got a mate who has developed his own javascript framework, off the back of some work he did with a very well known british television corporation who isn’t so enamoured though – i guess he’s biased but he knows his onions, heck i’m just an end user. still, for production quality i find query has never let me down, and like mike s has said, 19k is a show stopper.

    i can’t remember when jquery it was released (even as beta) but i do remember that the @media 2006 javascript frameworks panel seemed to be all over dojo.

    by phpbloke on January 17 2007, 19:08 - #

  • I was a Prototype junkie, but I have since changed my ways, and I couldn’t be happier.

    Mootools is nice, and Valerio is insanely talented, but the community involvement around jQuery, plus documentation, plus plugins, AND the Selector syntax and power all make me love jQuery.

    I am an OO JS guy and I can still do OO with jQuery.

    Honestly, I highly recommend making the move :)

    by Nate Cavanaugh on January 17 2007, 22:32 - #

  • I guess jQuery’s plugins are one big plus; it’s the community built in from the start.
    Is there any of that back-button funk already built in? And, as Dojo was mentioned, when you look at it in the way of tiny-toolkit (a la jQuery, mootools) against huge toolbox (Dojo, DWR), what’s the real need for the heavyweights?

    Integration with the server-side and Push technologies seem to be part of the answer, but is that all? I mean, surely someone could use Dan’s Ruby integration and do some sort of port to Java? And is there anything push-related available in jQuery?

    by Matthias on January 18 2007, 02:54 - #

  • Jquery! At only 19k, its simple to use, great documentation, mix and match plugins, and consistent and committed development & support.

    by Cody Lindley on January 18 2007, 11:20 - #

  • There’s a back button plugin for jQuery. I’ve not had a proper play but it looks like a nice simple implementation…

    And there’s a jQuery book in the works!

    by Mike Stenhouse on January 23 2007, 05:55 - #

  • It’s all about prototype.js. I know for a fact that it is faster then jQuery, and Yahoo’s libs

    by Doug on December 2 2007, 00:05 - #

  • so, where’s that fact? are you talking about this benchmark using a small dom between prototype and jQuery1.0 .
    Of course, this is very well possible, but it still has to outweigh coding convenience and size. Since I’ve written this post, I’ve completely abandoned moo, by the way, the fact that they changed syntax for the 0.93 of mootools and then again for the first release was too annoying. Too many code examples were based on something old. If I can I’m using jQuery now, otherwise it’s mostly prototype. And that’s purely based on coding convenience, not size or speed.

    by Matthias on December 2 2007, 04:48 - #

Leave your comment

Comments are moderated.
Tags allowed: a, strong, em, code, ul, ol, li, q, blockquote, br, p

Advertisement
Advertisement