DeveloperWeek 2023 has ended
Tuesday, February 21 • 2:00pm - 2:50pm
[Virtual Exclusive] PRO WORKSHOP: Floating and Sinking Promises: Let's Fix Your Broken Async Code

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
Josh Goldberg, Developer, Open Source Development

Promises and async/await are the right way to work with asynchronous code in Node.js. They're also both the easiest code constructs to introduce bugs with -- and can be some of the hardest code to debug. We'll walk through:

* Refactoring pre-Promise callback hell to Promises
* Refactoring pre-async/await Promises to async/await
* Debugging with console logs and node --inspect
* "Floating" Promises (those created and not handled): detection with TypeScript ESLint, and error handling
* "Sinking" Promises (those created and handled improperly): detection with TypeScript ESLint, and error handling

By the end of this workshop, you'll be fully prepared to debug even the gnarliest asynchronous shenanigans and write production quality asynchronous code.

avatar for Josh Goldberg

Josh Goldberg

Developer, Open Source Development
Hi, I'm Josh! I'm a frontend developer from New York with a passion for open source, static analysis, and the web. I'm a full time open source maintainer and work on projects in the TypeScript ecosystem such as typescript-eslint and TypeStat. I'm also the author of the Learning TypeScript... Read More →

Tuesday February 21, 2023 2:00pm - 2:50pm PST