What is defensive programming? Defensive programming is an approach to improve your source code and software, in the general terms of: Quality - Reducing the number of bugs Making source code readable: Comments, Comments, Comments.... Making the software