Comments on Dojo DeferredList Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞. 2012-12-20T13:43:50Z http://davidwalsh.name/deferredlist/feed/atom WordPress By: Cesar Cesar http://davidwalsh.name/?p=5623#comment-41070 2012-12-10T21:27:34Z 2012-12-10T21:27:34Z Is there any way to learn Dojo that isn’t a pain in the back? I’m trying and I have quite a bit of experience on other libraries, but Dojo does things in such a crazy way (or the docs are really bad at explaining things), for example, I still can’t understand why make such a huge change just to avoid global scope, after all, if you just use Dojo, you won’t have name conflicts (and even then you can just use dojo.blahblah).

Sorry if this looks like I’m against Dojo, I’m not, in fact I’m trying to migrate from Mootools, but besides being “the more correct way to code” (which many have claimed and I still think it’s quite subjective) I’m starting to think there isn’t a worthy reason to go through all the pain of learning Dojo, yes, and I will say it again it’s a pain even with the good will to learn it, I’m having such a heavy complain because I didn’t have this problem moving from JQuery to Mootools which, both are a “import/customize the file, use whatever you need, learn as you need”, you don’t have to learn to code again, you just have to use the libraries (though Mootools it’s more suitable for large projects because it’s more organized).

I’ve been following your blog since quite some time and I would like to know your opinion about this (and a possible solution).

]]>
By: Markus Markus http://davidwalsh.name/?p=5623#comment-40732 2012-12-04T19:58:06Z 2012-12-04T19:58:06Z jQuery’s $.when() does the same job, but the api looks more intuitiv

]]>
By: David Walsh David Walsh http://davidwalsh.name http://davidwalsh.name/?p=5623#comment-40689 2012-12-03T20:12:19Z 2012-12-03T20:12:19Z I like that DeferredList is backward-compatible and better documented :)

]]>
By: Bryan Forbes Bryan Forbes http://www.reigndropsfall.net http://davidwalsh.name/?p=5623#comment-40688 2012-12-03T20:08:49Z 2012-12-03T20:08:49Z Be sure to check out dojo/promise/all in 1.8:


all([def1, def2]).then(function(results){
// results[0], results[1]
});

]]>