Code — Fu: The Art of Defensive Programming

SovTech
SovTech Insights
Published in
2 min readDec 1, 2017

Defensive programming is much like defensive driving, if you don’t practice it you’re more likely to crash. In a world where there are often a number of different developers collaborating on a single project, whether closed or open source, the way in which you code can impact on the safe arrival of your end product.

Defensive programming is an exercise where you must anticipate failures in coding and add supporting code to detect, isolate and in some cases, recover from an anticipated failure.

In this presentation youll find a number of defensive programming techniques, along with a few generally bad programming examples you’ll want to avoid.

Slide 1,2
Slide 3,4
Slide 5,6
Slide 7,8
Slide 9,10
Slide 11,12
Slide 13,14

--

--