November 2024
Intermediate to advanced
620 pages
13h 46m
English
The best-laid schemes o’ mice an’ men Gang aft agley.
– Robert Burns
This famous line by Robert Burns should be etched into the mind of every programmer. Even if our code is correct, errors will happen. If we do not deal with them properly, they can cause our best-laid schemes to go awry.
Unhandled errors can cause software to crash or misbehave. Depending on the nature of the software in question, this could have serious consequences. Therefore, it is important to learn how to detect and handle errors. We encourage you to cultivate the habit of always thinking about what errors can occur and how your code should respond when they do.
This chapter is all about errors and dealing with the unexpected. We will ...
Read now
Unlock full access