Back to Browse

Errors as Values are the Future

47.5K views
Jul 14, 2024
7:19

We've all been in situations where our code errors when we least expect it, blowing up our program and taking down production. It's natural, and totally normal! But it's also preventable. Here's how Gleam does errors better. Writer: Ben Peinhardt __________________________________________ Check out my other socials! 🎮 Discord ▶ https://discordapp.com/invite/bWrctJ7 🐦 Twitter ▶ https://twitter.com/IsaacHarrisHolt 🖥️ Portfolio ▶ https://ihh.dev 📝 Blog ▶ https://isaacharrisholt.com __________________________________________ Timestamps: 00:00 - Introduction and explanation 01:06 - A two pronged approach 01:44 - In case of emergency 02:35 - The `Result` type 03:54 - Handling errors 05:08 - Cleaning up with `use` 05:55 - Representing errors #gleam #softwareengineer

Download

1 formats

Video Formats

360pmp48.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Errors as Values are the Future | NatokHD