Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax- design patterns? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax- design patterns?" Watch "Ajax- design patterns?" New topic
Author

Ajax- design patterns?

auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
Are there any design patterns for AJAX? Can you please name some of them and their purposes? Thanks!
David C. Crane
author
Ranch Hand

Joined: Oct 13, 2005
Posts: 59
Hi Ais,

Yes, there are plenty of them!

There are at least two kinds of design patterns in Ajax:
1. usability/workflow design patterns
2. Software design patterns

The two main bodies of literature on 'Ajax Design Patterns' are Michael Mahemoff's wiki, and subsequent book of that name by o'Reilly (http://ajaxpatterns.org), and Bill Scott's stuff at Yahoo! developer site (http://developer.yahoo.com/ypatterns/). Both of these talk principally about useability & workflow patterns, along with some discussions of request-response/comms patterns.

I discussed software design patterns in 'Ajax in Action' quite a bit, and more recently at a talk that I gave at QCon in London. The names here will be familiar - Observer, Model-View-Controller, Strategy, etc. - straight from the Gang of Four.

The interesting thing to me about applying design patterns in JS is that most of the literature has been on heavily OO languages - C++, Java, C# - whereas JS is muuch more aligned with functional programming. Hence, one approaches the __implementation__ of familiar patterns a bit differently.

HTH

Dave


---<br />Author of...<br />'Ajax in Action' <a href="http://manning.com/crane" target="_blank" rel="nofollow">http://manning.com/crane</a><br />'Prototype & Scriptaculous in Action'<br /><a href="http://manning.com/crane3" target="_blank" rel="nofollow">http://manning.com/crane3</a><br />'Ajax in Practice'<br /><a href="http://manning.com/crane2" target="_blank" rel="nofollow">http://manning.com/crane2</a>
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Not to forget "Ajax Patterns and Best Practices" by Christian Gross


[My Blog]
All roads lead to JavaRanch
 
 
subject: Ajax- design patterns?
 
Similar Threads
Can i Develop RIA application with this book?
Welcome Christian Gross
Book Content?
Ajax in Practice: Best practices with Prototype and Scriptaculous
Ajax Design Patterns