Errors as Values are the Future

Published: 14 July 2024
on channel: Isaac Harris-Holt
40,135
1.6k

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 ▶   / 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


On this page of the site you can watch the video online Errors as Values are the Future with a duration of hours minute second in good quality, which was uploaded by the user Isaac Harris-Holt 14 July 2024, share the link with friends and acquaintances, this video has already been watched 40,135 times on youtube and it was liked by 1.6 thousand viewers. Enjoy your viewing!