 Defensive programming

Defensive programming is a form of defensive design intended to ensure the continuing function of a piece of software under unforeseen circumstances.Defensive programming practices are often used where high availability, safety, or security is needed.