HTML-Advisor
Mostly practical advices

What is MooTools?

Mootools is a lightweight abstraction layer between the browser and the code you write and this is really the definition of nearly every js framework out there - Protoype, Dojo, jQuery, Y!UI, etc. It offers more functionality and richer tools for writing javascript, taking what has historically been painful and fraught with buggy environments (the browsers) and presenting you with a much more reliable environment. By adding it to your environment (i.e. including the script in your page) you are able to write succinct, readable, and reusable code more effectively and efficiently than without it.

Mootools at its core re-creates psuedo-classical inheritance with Classes that allow for extensible and reusable behaviors. Additionally, it provides its own set of classes to allow you to quickly and easily describe effects such as resize, fading, moving, dragging, and more (AJAX, JSON, etc). The code to make something transition from one state to another (fading, moving, resizing, etc.) is very succinct and Mootools does the rest.

Mootools also provides extensive DOM tools to allow you to select elements from the document, create new elements, and alter them. There are also shortcut helper functions (like $, $type, $chk, $random, etc.) that help you with common tasks.

With Mootools in your environment, you still write Javascript when it comes to basic syntax, but to a great extend you are NOT writing Javascript anymore; you’re writing Mootools. The benefit here is that not only is the framework doing a lot of the work (and you don’t run into nearly as many cross-browser issues), but if there is a bug or a change because of a new browser release, the framework can be altered without requiring you to rewrite all your code.

These levels of abstraction enable you to write far more rich clientside applications.

More info about MooTools:

Source: http://clientside.cnet.com/

Tags: , , , , ,

Related:

Posted in JavaScript. 350 views
Responses are currently closed, but you can trackback from your own site.

No Comments

Sorry, the comment form is closed at this time.