Exceptions vs error values in programming

preview_player
Показать описание
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:

Channel links:

Resources used in video:
Music:
Artist: MARION
Title: High Hopes

#programmingduck #programming #coding
Рекомендации по теме
Комментарии
Автор

Yes, keep up the content! Your channel is a perfect example that quality videos aren't necessarily bubbling up the YouTube algorithm. Which is sad. But hopefully the time will come..

JohnnyGintonic
Автор

6:37 wrong code! Assignment must be done before the try-catch-finally block. Constructor is responsible to clean up when it fails. You just can't rely on 'a' being assigned in your finally block. A good language and compiler will simply reject your code here.

retropaganda
welcome to shbcf.ru