Sunday, May 02, 2010

DOJO & JQuery

Contrary to popular belief that Dojo and jQuery are frameworks for AJAX, they are actually much more than that. Both are Javascript libraries that ease out the browser inconsistencies while running Javascipt on the client side. Any Javascript developer would have experienced the pain while writing Javascript code which is compatible on mutiple browsers. The subtle nuances in syntax required can eat up lot of time and what is bad - it can cause lot of flak from the management and end users.
These libraries have done a lot of good by taking care of cross browser requirements, but on the same hand have introduced a new learning curve for pure Javascript developers, with array of objects and methods to deal with. In some sense they have tried to incorporate concept of oops in their design, however in a loose way. There are objects with associated behavior(methods) but no inheritance, life-cycle etc. This is good news, since any oops programmer can pick up these libraries and start using them with very little effort without ever worrying about browser eccentricities.

No comments: