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

Sdílet
Vložit
  • čas přidán 8. 06. 2024
  • Luca's talk is based on this article: 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: / algo_luca
    Luca's book: www.zero2prod.com/
    We are aware of the audio issues.
  • Věda a technologie

Komentáře • 10

  • @KelvinKirima
    @KelvinKirima Před 2 lety +19

    Luca is doing some amazing work for the Rust community! Keep it up man!

  • @oscartgiles
    @oscartgiles Před 2 lety +12

    Fantastic talk! I was finding Rust's error handling tricky to get started with and this cleared up a lot. Thanks Luca.

  • @patricepeterson1736
    @patricepeterson1736 Před 2 lety +21

    I'm sorry, but as a non-native speaker, the audio quality combined with Luca's talking speed makes it really, really hard to understand anything at all here. :( Is there a transcript available somewhere?
    Edit: Sorry, I hadn't seen the last line of the description.

    • @RustVideos
      @RustVideos  Před 2 lety +10

      Check out the accompanying article: www.lpalmieri.com/posts/error-handling-rust/

  • @munkeo
    @munkeo Před 2 lety +4

    This is a very informative talk. This will help you tackle the Rust way of Error handling

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars Před 6 měsíci +1

    it was insightful, thank you :)

  • @Eugensson
    @Eugensson Před 2 lety +1

    This really rimends me of what is called “the railroad programming”.

  • @primingdotdev
    @primingdotdev Před 2 lety

    beautiful!

  • @tak68tak
    @tak68tak Před 2 lety +1

    Amazing! I like the way you explain the big picture at first.

  • @wanderlustfunk
    @wanderlustfunk Před rokem

    thanks