I'm using @glitch in chrome.
-
-
And Chrome devtools aren't doing what you expect there?
1 reply 0 retweets 0 likes -
Replying to @slightlylate
The code is in node. So no, the devtools in chrome aren't really doing anything. But I don't understand what it is you expect them to be doing.
2 replies 0 retweets 1 like -
Replying to @polotek
Chrome devtools have gotten outstanding about asynchronous (promises-based) debugging
2 replies 0 retweets 7 likes -
Replying to @slightlylate @polotek
What percentage of devs now always have a Chrome attached to their node processes during development? Is this something everyone is doing by now?
3 replies 0 retweets 0 likes -
Replying to @cramforce @slightlylate
I know the tools have gotten better. That wasn't my point though. I used to just be able to get errors. Now I sometimes don't get them and I don't know why I don't get them.
1 reply 0 retweets 1 like -
Replying to @polotek @slightlylate
Eating errors is the worst and no system should do it systematically. Promises may tend to sometimes cause accidental error handling because people don’t understand their semantics well. Not sure more frequently though than other patterns that rely on conventions.
1 reply 0 retweets 1 like -
Replying to @cramforce @slightlylate
My statement was that the semantics are unintuitive and broken. I'm not sure if there's an argument here.
1 reply 0 retweets 0 likes -
Replying to @polotek @slightlylate
Right, somehow people don’t realize that they have to rethrow in promise.catch, while everyone realizes that you have to rethrow in a catch block. Thankfully with async-await things revert to the latter.
2 replies 0 retweets 0 likes -
Replying to @cramforce @slightlylate
I think the biggest problem is that you can still get both the then block and catch block. At least in the situation I’m dealing with. It’s non intuitive to understand how to proceed when that happens.
1 reply 0 retweets 3 likes
-
-
Replying to @slightlylate @polotek and
(Watching this to see if there’s something we can improve in Glitch.)
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.