Post

Error Handling Across Languages Lessons From Python Go And Rust

Error Handling Across Languages Lessons From Python Go And Rust

Error Handling Across Languages: Lessons from Python, Go, and Rust

meme,

explain why errors are out friend, unline undefined behavior

typical errors

– memory errors

  • nil pointer deref
  • out of bounds – type errors .. make a case for static over dynamic – environmental errors
  • misconfigurations
  • resource exhaustion – dependency errors
  • essentials connections, inter service rpc, broker nuances … point out fault tolerance

set up example…

python

done quickly, yay

then show unforseen failures

introduce errors as values

  • go example
  • function stack..
  • no side effects
  • no cognitive load
  • verbosity..

? operator

  • what it solves
  • how it can be misused, solutions
  • ease into rust traits

business errors

  • error codes
  • internationalization needs
  • org standardization
  • configurable messages … introduce standard errors

closing thoughts

This post is licensed under CC BY 4.0 by the author.