About Me

My photo
I am a programmer ,learner and a dreamer and founder of world class Url shortener and analytics application .Check out the real time analytics dashboard also.

Saturday, July 2, 2011

What is Dojo .???What's the Hype ?? why should i use it?



What is DOJO toolkit.Today everything is cloud,web sites.according to facts 21.4 million websites were added in 2010 only and after increasing cloud based solutions websites are becoming more and more popular and so is the demand of rich UI .Dojo is a javascript based framework offering solution to that.

Jquery,dojo ,moo tools ,prototype these are the names of few popular one being used out in industry today to develop rich UX .


But the question arises in every one's mind which one to choose.Although no one can decide precisely which one is better of all as all are better in some aspects and most important the selection is based more on your requirements.

As far as my choice is concerned i always love to use dojo and of course jquery is just next to it.


The reason :

People will ask why dojo i can do the same thing with JQuery or Moo tools or any other.
Well the answer is in their question only.You can achieve the same effects or UI with other frameworks but not all frameworks provide you everything .Infact i have not seen any framework so easy to use and with such a rich set of components to use with classy professional looks as DOJO provides .

The architecture of dojo ,is similar to JAVA so its very easy to understand as compared to others.

              DOJO                                                                         JAVA
dojo.require("dijit.form.Button")                                            import java.util.List.

just like java looks for a class in a package with same folder structure as its package dojo looks for a js file called Button.js in a folder structure dijit/form/Button.js

This is just one example.You can create objects call functions ,have variables just like java.If you are familiar with java swings then you must have used panel ,Buttons.The way we add those components to their components using flowLayout etc.. similarily we have different containers in dojo to do the job.

You dont need to go to several different places  for components adding diiferent third party js files in your application to get the UI you wanted dojo gives it all under one roof with same look and feel so that your whole application can look same and it becomes easy to theme it also ,LESS MAINTAINENCE. most important for any developer is maintainence.People come develop a bit and leave but if some body developed somthing in one framework something in other then it becomes hard to manage also.

I18 support is integrated inside dojo at all levels making it easy to port for any language,as SAAS is  becoming popular day by day , the requirement for flexible application components is very high and that does not always only mean the backend logic part but also the front end of the application.

and the best part ITS FREE. The dojo license is not bounding you under any hidden terms ,anyone can access SVN repository and if you are good enough you can earn a commiter privilege too.

  • BIGGEST MYTH  : dojo is slow
Any thing that is handled without proper conventions and practices becomes slow.People use dojo by simply copying dojo packages or directly referring CDN url's which tend to make a new call for almost every new dojo.require since its a synchronous call browser is blocked till all JS files are not loaded .

Dojo has a build and packaging system that people forget to implement that is provided to solve that issue only and if used effectively can make the performance very good.


Dojo is one stop shop for faster better and rich web UI  development as compared to other frameworks.
 
I have uncovered only small layer of reasons to use dojo there is a vast desert of reasons that can be given in favour of dojo.But in the end i will still say the choice depends on requirements and the developers comfort :) in the technology .....


References :

Image taken from :

No comments:

Post a Comment