PROGRAMMING
JavaScript
Practical tutorials for the work we actually do. Pick one, read it in order, and apply it.
0 likes
Likes for this tutorial.
Batch API Calls With Promise.allSettled
Level: Advanced
Send many requests, keep the successes, and report the failures instead of losing everything to one rejected promise. Plus limiting how many run at once.
4 min read
0 likes
Likes for this tutorial.
Add a Timeout to fetch With AbortController
Level: Advanced
fetch has no timeout option and can wait a very long time. AbortSignal.timeout(ms) fixes that in one line, and AbortSignal.any combines it with a cancel button.
4 min read
0 likes
Likes for this tutorial.
Paginate an API With an Async Generator
Level: Advanced
Hide page numbers and "next" links inside an async generator, then loop over every record with for await. Stop early and the remaining pages are never fetched.
4 min read