title: what's the benefit of the dojo 1.7 AMD framework?
body: <p>I have been reading about how the dojo 1.7 loader uses an AMD API/framework <a href="http://dojotoolkit.org/blog/learn-more-about-amd" rel="nofollow">here</a> and <a href="http://livedocs.dojotoolkit.org/loader/amd" rel="nofollow">here too</a>, and I came across this quote on one of the slides: "AMD(’s) greatest benefit isn’t being able to load scripts on-demand, as some people may think, the greatest benefit is the increase of the code organization/modularity and also the reduced need for globals/namespacing."  But my question is, can't global variables already be avoided by using normal js functions, and maybe dojo.hitch() if you need to access another function's execution context (and another function's 'private' variables)?  Put another way, other than asynchronously loading only what you need, what is the benefit of the AMD framework?    </p>