We call it “The Usual Suspects”.
When you lose something, like your phone, for example, you look in likely places first - your pocket, your bag, by your keys- before you turn your room upside down.
The same common sense approach applies to code. The vast majority of bugs (mistakes in code) are the “Usual Suspects”, common errors.
When you prepare a list of these Usual Suspects ahead of time, you can review your list of likely bugs. This helps to prevent you from ending up being stuck in a never ending Where’s Waldo bug hunt (the hard ones at the end where it’s all Waldo lookalikes). This is also a useful technique for surgeons and everyday life (see The Checklist Manifesto by Atul Gawande).
There are 3 main types of bugs:
In Teach like a Champion lingo, they call this “Planning for Error.” Assume your students will make mistakes, so that you can be prepared to take action when it happens.
We just sent you an email. Please click the link in the email to confirm your subscription!
OKSubscriptions powered by Strikingly