Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
karoladamiec
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
karoladamiec
11y ago
That is one perfectly fine way to do it. But that is exactly what i want to highlight. The generators . You can combine them with promises, callbacks, even the CSP channels. But you need the generator. That is where magic happens and no am
2.
▲
by
karoladamiec
11y ago
Well promises help. And then they stop :). Stop helping. They just break under the weight. If you have promise chain that gets too long, you will feel the pain. The whole thing is, when some IO returns 1 or 2. And your next step is to do a
3.
▲
by
karoladamiec
11y ago
One reason to rule them all: Generator functions. Why it is a big deal one might ask. It is the BIGGEST deal in history of Javascript in my book because it allows you to do async that looks sync. No more callback hell. It is the single most