Advertisement

Real-World Examples

Abstract

The bulk of this book up to this point is designed to help you learn the purpose of various methods and classes in the MooTools library. It’s possible, through reading about these methods and classes and looking at the examples, to glean the “MooTools way” of doing things. As outlined at the beginning of this book in “About MooTools” in the Introduction, the following goals are part of MooTools’s core mission:
  • ▪ Don't duplicate code.

  • ▪ Add functionality that fits in principle with JavaScript’s own design philosophy.

  • ▪ Extend native objects (String, Function, Array, Element, Event, and Number) as JavaScript was designed to do.

  • ▪ Write clean, clear, well-named code that is understandable when read by anyone with the skills to understand it.

  • ▪ Abstract as much away from the browser as possible.

  • ▪ Whenever possible, make it still feel like you're writing JavaScript.

  • ▪ Make it modular.

Keywords

Event Class Native Object Design Philosophy Readable Code Code Line 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Aaron Newton 2008

Personalised recommendations