Client Side Ajax Frameworks or Java Script Frameworks

Posted: October 13, 2008 in Architecture Series
List of JavaScript Framework and Comparision :- http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks [Pretty details].
 
 
ClientSide JS Frx:-
Prototype 
jQuery 
  Yahoo UI 
Adobe Spry 
  Moo Tools
Dojo
ExtJs
To decide right choice of framework, it all depends on the requirement. If in a  project it is required to follow component based
development and a fully  extensible approach, I would suggest jQuery.
The main reason for this  is as follows:-
*Microsoft announced that VS will provide Jquery Support see http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/
*The  framework is plug-in based and there are many plug-in available at the  main site and is extensible. New plug-ins
can be created very easily and  quickly.
*It  provides modular Java Script coding and also minimize the amount of javascript you write with clean code and small footprint.
*Loose Coupling
 
* It  never conflicts with any other framework as it run in its own  namespace.
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
* Has  got very good documentation and active community .
* The  plug-in created are generally tested on all the major web browsers and thus  cross browser compatibility is less of an issue.
Interesting  read:-
Point  your browser URL to http://www.noupe.com/ajax/45-fresh-out-of-the-oven-jquery-plugins.html,  to see what cool things are
achievable with jQuery.
jQuery  Main Site:
http://jQuery.com
 
Prototype file size is around 123kb , though prototype is relatively fast in Firefox  as compare to
jQuery.Prototype can’t even handle basics on its own without  having to piggy back off of script.aculo.us and it’s effects  library.
Few points observed during using prototype vsjQuery
* Prototype encourages a class-based structure
*jQuery has got powerful Dom query engine
If anyone still want to go class-based design then  consider “moo”.

 
Pros and Cons of YUI
Pros:
–  well documented compared to other frameworks.  Javadoc style.
— Good examples for almost every component.
– the core libraries contain most of the features needed for DOM Manipulation, AJAX transactions ,DHTML overlays, Event handling
without the need for extensions or plugins.
– supports plugins and extensions
Cons:
– can add pageweight
– verbose code…
YUI sticks to the core JS patterns while the above 2 follow shorthand syntax for Java script
 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s