dwyl / dwyl/learn-javascript

Asynchronous Adventures in Javascript by Benjamin Diaguid

Open
#27 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
65
Forks
15
PR merge metrics
No merged PRs in 30d

Description

A really, really _nice_ detailed but understandable discussion of the whys and whats and hows and wheres of asynchronous Javascript code, which has previously been to me nothing but dark magical arts:

1. Understanding the Event Loop: https://medium.com/dailyjs/asynchronous-adventures-in-javascript-understanding-the-event-loop-fc6f968d5f72
2. Callbacks: https://medium.com/dailyjs/asynchronous-adventures-in-javascript-callbacks-39880f1b470e
3. Promises: https://medium.com/dailyjs/asynchronous-adventures-in-javascript-promises-1e0da27a3b4
4. Generators: https://medium.com/dailyjs/asynchronous-adventures-in-javascript-generators-74199218bab2
5. Async/Await: https://medium.com/dailyjs/asynchronous-adventures-in-javascript-async-await-bd2e62f37ffd

The above gives me courage to have another crack at chapter [17](http://eloquentjavascript.net/17_http.html) of "Eloquent Javascript", since I now have more _context_ and _googable_ terms.

'@nelsonic I think you might find the discussion on callbacks useful for your "Elm Architecture in Javascript" tutorial, given that it was assumed the audience might not be familiar with the callback pattern. I myself was aware of delayed evaluation from functional Programming ([thunk](https://en.wikipedia.org/wiki/Thunk)) but did not quite connect the concept of delayed evaluation with asychronicity, so I get two apples for the price of one!: oh, it is called a callback becauses the function will be called later, depending on whether it has finished its work, or is just needed right now!

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the five linked articles on the event loop, callbacks, promises, generators, and async/await, along with the references to Eloquent JavaScript chapter 17 and the Elm Architecture tutorial. The issue does not name a repository file or a concrete change, so confirm the intended documentation update before defining what done means.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.