Exceptions vs error values has been a debate in error handling for ages. Some people have firm stances on them. For example, in the book Clean Code, Uncle Bob recommends exceptions. In his post on Exceptions, Joel mentions that he prefers error values.
In this article we'll examine some of their similarities and differences. We'll also provide suggestions about when to use which.
This video is part of many error handling videos on this channel. It's a big topic with many videos covering it.
Chapters:
0:00 Intro
0:43 Basic examples of exceptions
1:36 Basic examples of error values
2:36 Similarities between exceptions and error values
3:39 Differences between exceptions and error values
7:22 Exceptions and error values in some newer languages
11:26 Outro
Video links:
Article version of this video: https://programmingduck.com/articles/...
Slides: https://docs.google.com/presentation/...
Channel links:
Programming Duck website: https://programmingduck.com
Facebook: / programming-duck-100207231868555
Instagram: / programmingduck
Resources used in video:
Music:
Music provided by HearWeGo (https://goo.gl/nDS3zR)
Artist: MARION
Title: High Hopes
Listen on YouTube: • MARION - High Hopes
Intro screen: https://trendslogo.com/after-effects-...
Subscribe button template - https://trendslogo.com/youtube-subscr...
Outro screen: https://trendslogo.com/outro-template...
#programmingduck #programming #coding