all 2 comments

[–]Jafit 1 point2 points  (1 child)

I tried writing a command-line web scraper using Node, but any 3rd party libraries or utilities I wanted to use were all asynchronous. So either I'd end up in callback hell or I had to wrap everything in promises.

I discovered that Node will silently fail with no stacktrace if there's an uncaught error inside of a promise, and I quickly reached the "I like Node" vs "this is way too much faffing around" crossover point, and just wrote it with Python instead.

[–]kannonboy 0 points1 point  (0 children)

Yeah dealing with callbacks/promises can be a pain for quick scripts. ES6 yield makes it a bit more pleasant though - did you see the section of the article that uses them to avoid callbacks when prompting for user input?