Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery deferred object-like syntax #38

Open
tomkit opened this issue Dec 13, 2012 · 1 comment
Open

jQuery deferred object-like syntax #38

tomkit opened this issue Dec 13, 2012 · 1 comment

Comments

@tomkit
Copy link

tomkit commented Dec 13, 2012

I wrote a quick wrapper API around whenPromise() to be more like jQuery's deferred object syntax: https://github.com/tomkit/promised-io-deferred. Would love to get people's thoughts on the pros/cons of the different syntax styles. Personally I found myself being lazy with anonymous functions with whenPromise() and it leads to having more nested code.

@vicary
Copy link

vicary commented Apr 2, 2013

👍

Don't know if it is about the Promises/A spec, but I found the suggested methods very demanding in terms of development cycle. The jQuery deferred style implies a really rapid coding style.

Me and my team loves to do .done() on development along with some initial .fail(), then start to add more .fail()s at the debug stage, we already found this approach very constructive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants