Thanks, this question came about after fooling around with Facebook's API. I did get what I needed accomplished but struggled with the async concept. I made a API call with my own callback but it didn't work that way. Probably because I'm a js noob still finding my way around. Thanks for the advice and I will follow up on that.
Sent from my iPad On May 9, 2011, at 12:30 PM, Scott Sauyet <[email protected]> wrote: > Shawn Stringfield wrote: >> Anyone know of any great resources for learning asynchronous js? > > Practice. > > Seriously, there are no particular difficulties in the ideas of > asynchronous programming. If you've ever done any event-based > programming, even just `onClick=...`, then you've already made the > conceptual leap. Now it's just a matter of practicing. > > Write some code. Take some synchronous API and start to imagine how > you'd have to change it if you wanted to allow certain parts to be > asynchronous. Watch how this then spreads through various layers of > the API. Write more code. See what breaks. Look at the various > Promises APIs. [1] Investigate Dojo's Deferred or the jQuery > implementation. Write more code. > > That's all it takes (except that you'll probably want to write a bit > more code!). > > -- Scott > > [1] http://wiki.commonjs.org/wiki/Promises > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
