Section 3.3. Ajax Patterns Overview


3.3. Ajax Patterns Overview

The Ajax Patterns show how people have used the design principles effectively in real-world Ajax applications. It might seem funny that we can have so many patterns about Ajax, a term that was coined only a few months before work on these patterns began. However, the ideas are not new; there were many Ajax features on the Web before the term came about to describe them. The healthy Net economy has helped a lot too, with hundreds of new sites now using Ajax, along with powerful tools (RSS, Technorati, Google, and wikis) to locate them as soon as they're available.

With over 60 patterns, it's useful to classify the patterns hierarchically. At a high level, the book is divided into four parts, each corresponding to a different focus areaFoundational Technology, Programming, Functionality and Usability, and Development. Beyond that, each part is divided into several chapters, where each chapter includes related patterns. For instance, Foundational Technology Patterns (Part II), includes Web Remoting (Chapter 6), which includes several patterns for web remoting. Here's a summary of each part:


Foundational Technology patterns (11 patterns)

The foundational technologies are the building blocks that differentiate Ajax from conventional approaches, and this section explains typical usage.


Programming patterns (23 patterns)

These are the features of architecture and code that serve the software design principles listed previously. These include, among other things, design of web services; managing information flow between browser and server; populating the DOM when a response arrives; and optimizing performance.


Functionality and Usability patterns (28 patterns)

These are the things that matter to users, including widgets and interaction techniques; structuring and maintaining what's on the page; visual effects; and functionality that Ajax makes possible.


Development patterns (8 patterns)

These are process patterns advising on best practices for development, as opposed to all the previous patterns, which are "things" that live inside an Ajax application. The practices are about diagnosing problems and running tests.

Figure 3-1 shows where the four parts sit in the context of an Ajax application. Most patternsthose in the first three partsare about the product, while the remaining part, Development patterns, is about the process. Of the product-oriented patterns, the Foundational Technologies explain how to use the crude web technologies such as XMLHttpRequest and the DOM. At a medium level are the Programming patterns, guiding on strategies to use these technologies. At a high level are the Functionality and Usability patterns. Overall, the Foundational Technology patterns are at the core of the Ajax Patterns language; the remaining three parts all build on these, and are fairly independent from one other.

Figure 3-1. Ajax Patterns: four parts


On the inside covers of this book, you'll find an alphabetically ordered reference of all the patterns, providing summaries and page numbers. The introduction to each part of the book and to each chapter also contains some summary information.

In addition, the following pages contain pattern maps for each of the four high-level groupsFoundational Technologies, Programming, Functionality and Usability, and Development. The diagrams in Figures 3-2 through 3-5 follow these conventions.

Figure 3-2. Foundational Technology patterns


Figure 3-3. Programming patterns


Figure 3-4. Functionality and Usability patterns


Figure 3-5. Development patterns



Pattern


Pattern group


Foundational Technology pattern group


Pattern A "leads" to Pattern B


Patterns A and B solve a similar problem, but in different ways




Ajax Design Patterns
Ajax Design Patterns
ISBN: 0596101805
EAN: 2147483647
Year: 2007
Pages: 169

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net