Thoughts.
Architecture decisions, half-formed research notes, and what I learn building things that have to stay up.
2 thoughts tagged Javascript
Nov 2021 · 3 min
Introduction to Generators
Generator functions pause and resume on yield instead of running top to bottom. A basic introduction to how .next() drives that, and why it makes implementing an iterable almost trivial.
JavascriptGenerators
Oct 2021 · 3 min
Promises, what are they in Javascript?
Before Promises, Javascript leaned on nested callbacks for async work. A walk through why callback hell happens, what the Promise constructor actually does, and why "I will be logged first" beats "Hello world" to the console.
JavascriptPromises