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


Watch video Errors as Values are the Future online without registration, duration hours minute second in high quality. This video was added by user Isaac Harris-Holt 14 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 40,13 once and liked it 1.6 thousand people.