54 points · by Leftium · 14y ago · 30 comments
Rebecca also gives a detailed description of her first foray into Dojo coming from jQuery. [2]
Personally, I think Dojo's lack of good documentation/reference code, lack of 'marketing', and relative complexity keep it from becoming popular. It's much easier to get started with another library like jQuery because of all these factors. However, once you get over that initial steep learning curve, Dojo is great!
[1] http://www.quora.com/Rebecca-Murphey/answers/Dojo-JavaScript...
[2] http://rmurphey.com/blog/2009/11/12/dojo-confessions-or-how-...
edit: corrected name to Rebecca
Marketing is challenging for engineers. We tend to not go crazy over every small feature, but focus on the big stuff. That said, we're improving our approach.
Two points:
1. The tutorial shows using the CDN, then there's big warnings saying "don't do this in production". Give another demonstration of the "highly recommended" approach vs leaving people to piece that together themselves.
2. "we tend to not go crazy over every small feature". What's a small feature to you may just be something that 80 people have been waiting patiently for. While you can often judge what a 'big' feature is by your standards, dismissing many other things as 'small' probably misses a lot of people.
As to why it's not more popular? Likely marketing. Dojo isn't sexy. It's been around for a very long time.
You'll notice that a lot of discussions around things like module loading reference Dojo as an inspiration.
http://w3techs.com/technologies/overview/javascript_library/...
I find dojo project way more neater than an equivalent jquery project by default.
Module systems rock. Real object oriented programming rocks, see how I extended Pager to make PausePager, this is how object oriented programming was meant to be. The fact that I can extend any dojo class, and the fact that dojo comes with a large collection of class, its just too sweet.
I have not yet created a "build", so there are a bit too many http requests (check work in progress live version here: http://amitu.com/ikog/), but I am hoping after build this issue would be solved.
Lets see how it goes.
So my next task is to refactor my todo.html into a framework based on Dojo Boilerplate [2]
I suggest starting with a bare Dojo Boilerplate that builds nicely, then adding your ikog code to the boilerplate project.
It's more difficult to build later, although you can go a long way with the online Dojo Web Builder [3]
[1] https://github.com/Leftium/todo.html
[2] https://github.com/Leftium/dojo-boilerplate
[3] http://dojotoolkit.org/blog/introducing-the-new-dojo-web-bui...
I like that build.sh in dojo boilerplate "minifies" the html file too!
I checked your todo.sh project, I see the html page, and java loads, but nothing happens when I type something and press enter in text field. May be you just started and its not implemented yet, or may be I am doing something wrong.
My suggestion to you would be to do a hosted version, that syncs to dropbox. That is my plan for iKog. Parse is good if you do not want to have a dependency on dropbox, as a storage. Both of these allow me to access todo list from anywhere, the applet solution does not allow that.
It all depends on what you want to do, for me it is a playing ground to work with different libraries/services.
I have yet to start producing the app, but Dojo really deserves more attention.
Dojo is my primary js framework, I prefer it over jQuery, because it's more strict.
If you don't think that WYSIWYG IDEs are useful, then that's fine, but some do, and I thought I'd share.
More details: Dojo 1.x to 2.0 migration guide [3]
[1] http://dojotoolkit.org/features/1.6/html5data-attributes
[2] http://dojotoolkit.org/reference-guide/1.8/releasenotes/1.6....
[3] http://dojotoolkit.org/reference-guide/1.8/releasenotes/migr...