PDA

View Full Version : Promises/A+ in Sencha Touch



coolfish
22 Oct 2013, 6:23 AM
Hey all, curious what you're all using for Promises. I recall reading somewhere that for Architect 3 or some Sencha product, you guys have started to use promises to make it easier to handle/read all the async stuff you're doing. The only posts in here was an unanswered question in Q&A about the Q library a while back, so I thought I'd ask again and see what everyone's experiences are.

superstructor
22 Oct 2013, 2:18 PM
Hey, Deft JS (http://deftjs.org/) has a Promises/A+ compliant implementation for Sencha Ext JS and Touch.

Deft JS is a community led effort available under the MIT license that enhances Ext JS and Sencha Touch’s APIs with additional building blocks that enable large development teams to rapidly build enterprise scale applications, leveraging best practices and proven patterns discovered by top RIA developers at some of the best consulting firms in the industry.

We have over 2000 unit tests and the official Promises/A+ test suite running against all publically available Sencha Ext JS and Touch versions in continuous integration testing on Travis-CI.

If you are using Sencha Cmd see "Using Sencha Cmd" on "Adding Deft JS to Your Application" (https://github.com/deftjs/DeftJS/wiki/Adding-Deft-JS-to-Your-Application).

John Yanarella has recently made some order-of-magnitude performance enhancements to Promises over all competitors including Q that we'll be excited to include in the next release.

Thanks,

Isaac

coolfish
3 Nov 2013, 12:53 AM
I checked out DeftJS, and I couldn't get it to properly load up, something to do with the app.json but I quickly gave up. :/ I've been using Q.js, which is a small (2.5kb) file that I could easily include. It's pretty lightweight and straightforward once you get the hang of it. Once I'll have more time I'll try DeftJS again in another project. It's other features sound interesting.

Thanks!


Hey, Deft JS (http://deftjs.org/) has a Promises/A+ compliant implementation for Sencha Ext JS and Touch.

Deft JS is a community led effort available under the MIT license that enhances Ext JS and Sencha Touch’s APIs with additional building blocks that enable large development teams to rapidly build enterprise scale applications, leveraging best practices and proven patterns discovered by top RIA developers at some of the best consulting firms in the industry.

We have over 2000 unit tests and the official Promises/A+ test suite running against all publically available Sencha Ext JS and Touch versions in continuous integration testing on Travis-CI.

If you are using Sencha Cmd see "Using Sencha Cmd" on "Adding Deft JS to Your Application" (https://github.com/deftjs/DeftJS/wiki/Adding-Deft-JS-to-Your-Application).

John Yanarella has recently made some order-of-magnitude performance enhancements to Promises over all competitors including Q that we'll be excited to include in the next release.

Thanks,

Isaac

coolfish
4 Nov 2013, 3:57 AM
I just wanted to post this so that others find out - if you aren't using a Promises library (a proper one) in your webapp, you are making your life so much harder for yourself. Good golly, I wish I had learned about Promises sooner.