Defensive Programming : Best Practices

Defensive programming is a set of practices that aim to reduce occurrence of bugs and decrease debug time when bugs do occur. This seminar will outline some of the practices most accessible to the beginner programmer. The practices presented are largely language independent rules of thumb. They help programmers anticipate failures in code functionality, increase readability, and reduce production time.


This webinar was presented by Ed Armstrong (SHARCNET) on December 7th, 2016 as a part of a series of regular biweekly webinars ran by SHARCNET. The webinars cover different high performance computing (HPC) topics, are approximately 45 minutes in length, and are delivered by experts in the relevant fields. Further details can be found on this web page:

SHARCNET is a consortium of 18 Canadian academic institutions who share a network of high performance computers ( SHARCNET is a part of Compute Ontario ( and Compute Canada (