Why MooTools?
I’ve been playing around with the MooTools javascript library and just wanted to mention some of my thoughts on it.
What is MooTools?
No, MooTools doesn’t refer to cattle-farming equipment. It’s a lightweight, object-oriented, modular, and cross-browser JavaScript framework that makes Ajax implementation easy and lets you throw in neat visual effects, and that’s just the beginning. You can check out their demos. Why is it called “MooTools” you ask? I have no clue. But coincidentally, the database book holding up my monitor has cows on the cover. Is there some relation between software development and bovines I’m not aware of?
Why MooTools?
Having worked with Prototype and Scriptaculous, I’ll say that MooTools feels quite similar to that venerable combination. Both Prototype and MooTools comes with function that allow for easy DOM manipulation and Ajax calls, but MooTools has got some things going for it that may make it a stronger library, depending on your needs. I’ll list some of those here:
- Lightweight
The entire MooTools is only 44kb when compressed. Prototype can be compressed down to ~20kb. Scriptaculous is well over 100kb when uncompressed and has only been compressed with varying success. - Documentation
MooTools has great documentation with examples. Prototype’s API is decent but Scriptaculous is poorly documented as its wiki isn’t very helpful. - Robust
MooTools’ effects are superb and really allow developers to be creative, but I think its strength lies in its robustness. The MooTools development team did a great job making it stable. On more than one occasion, I’ve experienced buggy and choppy effects with Scriptaculous, not so with MooTools. Scriptaculous does seem to have some effects options that MooTools lacks, such as pulsate and shake.
I won’t say which one of these libraries is superior, especially when both are just getting better and better. I will say that if you are looking for a powerful, lightweight, and well documented javascript package, then MooTools is a solid choice.
Very nice article, cows are all over your development
Why its named MooTools:
My Object Oriented JavaScript Tools.
Not to mention that u have in this 44kb compressed code a lot more stuff than in Prototype, like Fx, Chaining, Cookies, Sortables, Dragging … and a better Class inheritance. We plan to make the nifty helpers like pulsate or shake as plugins for the new plugin forge. But such helpers will never get into the core