This is from Programming in Python, section 5 (Defensive Programming) although the material could apply to many other languages.
(See http://software-carpentry.org/v5/novice/python/05-defensive.html)
When I started, it became abundantly clear that this isn’t a 5 minute topic so I had to remove test driven development, debugging, … (ideas for further concept maps)