3 ms·
Basic Node.js Lambda Function Concepts
- entropie 9y agoOT; but can anybody can hint me to a good ressource where to learn more about Promises and how to use them correctly?
- marvinpinto 9y agoI found this pouchdb blog post[1] really helpful when first trying to wrap my head around promise chaining patterns. Highly recommend! [1]: https://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html https://pouchdb.com/2015/05/18/we-have-a-problem-with-promis...
- m90 9y agoThis might sound bonkers at first, but I think I did not really understood promises until I implemented the spec myself (with a lot of studying others' code that is). It's actually not too time-consuming (I think it took me an afternoon) and there is a test suite covering the entire spec on npm: https://www.npmjs.com/package/promises-aplus-tests https://www.npmjs.com/package/promises-aplus-tests so you can just hack away until everything is green.
- Altimos 9y agoCheck out this guide: https://scotch.io/tutorials/javascript-promises-for-dummies https://scotch.io/tutorials/javascript-promises-for-dummies The pouchdb blog post linked is really good too!
- lakeeffect 9y agoSolid intro article. https://beta.observablehq.com/@mbostock/introduction-to-promises https://beta.observablehq.com/@mbostock/introduction-to-prom...
- entropie 9y agoThanks everybody, for answering.