• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Ajax- design patterns?

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any design patterns for AJAX? Can you please name some of them and their purposes? Thanks!
 
author
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not to forget "Ajax Patterns and Best Practices" by Christian Gross
 
Bras cause cancer. And tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic