How to use assertions to make your code more reliable
I recorded this 40-minute video live during my lecture, chopped it up into five pieces, and lightly edited it. The delivery is a bit rough at parts, but overall I liked being recorded in front of a classroom audience rather than alone in a studio.
Part 1 (Duration: 2:44)
The first step to becoming a better programmer is to get into the debugging mindset.
This clip features the blog post Who should I blame (when debugging)?
Part 2 (10:02)
What is an assertion, and when should you use it in your code?
Part 3 (10:07)
Part 4 (8:19)
Here is a more complex kind of assertion in my Web application, which involves synchronizing multiple views of the same data.
Part 5 (10:05)
If an assertion fails, how do you build a reproducible test case to expose the bug, and then minimize that test case to make it easier for you to debug and fix it?
Donate to help with web hosting costs
Last modified: 2014-12-18