Are promises our only choice? | Naty Rocha | Conf42 JavaScript 2022

Conference: Conf42 JavaScript 2022

Year: 2022

Promises are the standard approach to handling asynchronous operations in JavaScript and TypeScript. While they are flexible and fun to program in, important downsides make our codebase less maintainable. For instance, errors in a promise are typed as any, they use eager evaluation, and you can completely omit a catch operation for error handling. So there should be something else we can use, shouldn’t it? In this talk, we will be learning how to use functional programming and some alternative asynchronous computations like TaskEither, ReaderTaskEither, and Futures to show how we can handle side effects and create more robust applications. Other sessions at this event 🚀🪐 https://www.conf42.com/js2022 — 0:00 Intro 0:46 Talk