3.10 Introduce Assertion
More important than writing code is reading code. It’s one of the main reasons why software is hard: bugs are hard to find. The other one is user errors.
In this lesson, you learn how to improve the way code is read and improve user error handling through assertions before the code is run. It’s an unusual practice, but you might find it valuable for critical tasks.