4

Rust Linz, January '22 - Error Handling in Rust - A Pragmatic Approach by Luca P...

 2 years ago
source link: https://www.youtube.com/watch?v=jpVzSse7oJ4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Rust Linz, January '22 - Error Handling in Rust - A Pragmatic Approach by Luca Palmieri

6,454 views
Jan 31, 2022

38K subscribers

Luca's talk is based on this article: https://www.lpalmieri.com/posts/error...

Rust does not rely on exceptions - errors are values, handled via the `Result` enum. Calling a fallible function forces you to account for errors - the type system does not let you ignore them.

Developers speak highly of Rust's approach to error handling. At the same time, they often report feeling lost and confused when modeling the unhappy path of their Rust applications. They have questions and the answers are not always straightforward: how do errors fit within the broader architecture of our application? What does a good error look like? What are errors for? Should we use a library? Which one?

This talk will offer a pragmatic framework to determine how to approach error modeling/handling in a variety of different scenarios.

About Luca Palmieri Luca Palmieri is a Principal Engineer at TrueLayer. He is a co-organizer of the Rust London User Group and the author of "Zero To Production In Rust", an introduction to backend development using the Rust programming language.

He is the author of a few crates in the Rust ecosystem (e.g. cargo-chef, wiremock, ndarray-stats, linfa, etc.) as well as a few workshops (i.e. build-your-own-jira-with-rust and ndarray-koans).

Luca on Twitter: https://twitter.com/algo_luca Luca's book: https://www.zero2prod.com/

We are aware of the audio issues.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK