Is ‘window’ really global in JavaScript?

The reason why you can access “out of scope” or “free” variables in ECMAScript is the so-called scope chain. The scope chain is a special property from each execution context. As mentioned several times before, a context object looks at least like: [[scope]] Variable / Activation Object “this” context value Each time you access a … Read more

What is the relationship between event loop and Promise [duplicate]

Each event loop has a microtask queue and a macrotask queue. A microtask is a task that is originally to be queued on the microtask queue rather than a task queue. Refer to https://www.w3.org/TR/html51/webappapis.html#microtask-queue. There are two kinds of microtasks: solitary callback microtasks, such as Promise, and compound microtasks, such as Object.observe, MutationObserver and process.nextTick … Read more

What are some good computer science resources for a blind programmer?

You might find the Experiences of a Blind Computer Scientist a good read. MIT’s Open Courseware would be a good resource for you with the amount of videos/audio they have. Really though, for the core computer-science topics I find it pretty hard to beat some of the better textbooks out there. Some offer digital versions … Read more

“Flat is better than nested” – for data as well as code? [closed]

This is a completely subjective question. The answer is, “it depends.” It depends on the primary use of your data. If you continually have to reference the nested structure, then it makes sense to represent it that way. And if you never reference the flat representation except when building the nested structure, then why have … Read more

Monad theory and Haskell

A quick disclaimer: I’m a little shaky on category theory in general, while I get the impression you have at least some familiarity with it. Hopefully I won’t make too much of a hash of this… Does anyone know of a tutorial that starts from category theory and explains IO, state, list monads in those … Read more

techhipbettruvabetnorabahisbahis forumu