3 ms·
Bluebird is awesome. :) I especially love promisifyAll() and promisify(). The only reason I didn't include something like that in the post is that I didn't wan
by nolanl 11y ago
Bluebird is awesome. :) I especially love promisifyAll() and promisify().
The only reason I didn't include something like that in the post is that I didn't want to overwhelm newbies. I think it's already confusing enough what the difference is between q/when/RSVP/bluebird/jQuery promises/Angular promises, etc... And honestly, more and more I just use vanilla promises, or a tiny polyfill like Lie.
- ddoolin 11y agoAfter native promises, is there much reason to use 3rd party libraries? Promises are a pretty small set of tools, so I'm not sure what one would have to offer over another.
- STRML 11y agoFeatures, I suppose. Bluebird has many more helpers than the spec, and it may actually be faster than the first round of native Promises. We'll see how it evolves.
- realusername 11y agoThe stacktrace is much much better in Bluebird compared to native and there are lots of methods which are not available in the native one.
- inglor 11y agoBluebird is much faster and easier to debug than native promises. It is very feature rich and it runs _everywhere_. It also converts callback APIs to promises at one go. That said, on a client-side app there are cases where I'd use native promises. On the server - not a chance.
- esailija 11y ago(disclaimer: I am the author of bluebird) Thank you. I must say the most prominent feature of bluebird has always been "debuggability" (not perf). Long stack traces, unhandled rejection reporting and warnings for many of the mistakes you cover (coming in 3.0, some of them listed at http://imgur.com/a/t3xng http://imgur.com/a/t3xng) are just priceless, especially when working with people who are not promise ninjas.
- nolanl 11y agoThose new warnings are FANTASTIC. That's exactly what I meant when I said it's better for your tools to warn you, rather than trying to read and understand some lengthy article. :) BTW for PouchDB, we use bluebird in Node and lie in the browser, and bluebird has been truly indispensable for debugging. Looking forward to it getting even better!
- inglor 11y agoIf you have a suggestion for warnings please open an issue https://github.com/petkaantonov/bluebird/issues https://github.com/petkaantonov/bluebird/issues If you want to contribute we'd love docs contributions as you clearly have good technical writing. Here are the 3.0 docs (currently under work) https://github.com/petkaantonov/bluebird/tree/3.0docs/docs/docs https://github.com/petkaantonov/bluebird/tree/3.0docs/docs/d... any help with pages that explain promises conceptually (anti patterns page etc) would be highly appreciated.
- nolanl 11y agoI've got my hands pretty full with Pouch, but I'll take a look! :) Thanks.