Matthijs Groen talks at the Guild (http://theguild.nl) about Javascript Promises, a design pattern for dealing with asynchronous Javascript calls. Video available at https://vimeo.com/75008316.
Currently developing using Rails and Backbone.js • I believe in the promise of web-applications • Building web applications since 19?? - Opera 5.11 - IE 5.5 - Dail-up modems
showMessage(result); throw new Error('Broken') catch e # show animation and ask to reload showAnimation 'animation done', onSuccess: animationDone finally showMessage('ask feedback');
will be handled in a natural way (like exceptions) • Uniform way of handling asynchronous processes • Uniform way of handling between all Promises/A+ libraries • Return value will be a promise that delivers the return value or the exception asynchronously