Defensive programming: Difference between revisions

Content deleted Content added
No edit summary
Added intro definition
Line 1:
Defensive programming is a form of [[defensive design]] intended to ensure the continuing function of a piece of software in spite of unforeseeable usage of that piece of software. The idea can be viewed as reducing or eliminating the prospect of [[Murphy's Law]] having effect. Defensive programming techniques come into their own when a piece of software could be misused mischievously or inadvertantly to catastrophic effect.
 
Here are some hints on '''defensive programming techniques''' to avoid creating security problems.
Many of these techniques also improve general quality of code, because almost any major bug can be potentially used by a [[cracker (computing)|cracker]]