It drove me crazy too, until I needed to use Puppeteer which requires you to write async/await (there are Puppeteer implementations in other languages, but they all seem to make compromises I didn't want). Generally speaking, async/await allows you to write code that looks and feels serial. Perhaps try using one of the async libraries for PHP to wrap your mind around the concept of async/await (like https://github.com/spatie/async)
gorjusborg|3 years ago
Learning the event loop, then promises, then async/await is a must. Today, you probably should throw typescript on top.
A steep learning curve just to get back to a typed language that can do things concurrently.
You do get used to it, but it is a mess of stuff.
wonnage|3 years ago
rwalle|3 years ago
bdcravens|3 years ago
farmin|3 years ago
Makes using a bit of JavaScript relatively simple, just not much in Stack Exchange yet which means reading docs..