#Promises
6 notas · última:
Code Smell 155 — Multiple Promises
Waiting for promises one by one creates indeterminism and a performance bottleneck. If all results are needed, they should be awaited together with Promise.all.
JavaScript Concepts Every Programmer Should Know
The article reviews core JavaScript ideas that make development easier, including arrow functions, reduce, asynchronous execution, async scripts, async/await, and promises.
8 techniques to write cleaner JavaScript code
The article lists eight ways to make JavaScript easier to read and maintain: pure functions, named or object parameters, destructuring, constants for hard-coded values, method chaining, promises, and async/await.
Patterns for Asynchronous Programming with Promises
The post shows promise-based patterns for running asynchronous work in parallel or in sequence, using map, Q.all, each, and reduce to control order and collect results.
Write Better JavaScript with Promises
The article shows how promises make jQuery code easier to read, let APIs return values instead of callbacks, support chaining, and combine multiple requests with `when`.
Why you should always under-promise and over-deliver
The article argues that promises shape trust, expectation, and social relationships, so smaller, realistic commitments are easier to keep and more likely to strengthen confidence and goodwill.
