This article includes a "list of references, but its sources remain unclear because it has insufficient "inline citations. (July 2017) ("Learn how and when to remove this template message)
In software development, it is the practice of anticipating all possible ways that an end-user could misuse a device, and designing the device so as to make such misuse impossible, or to minimize the negative consequences. For example, if it is important that a plug is inserted into a socket in a particular orientation, the socket and plug should be designed so that it is physically impossible to insert the plug incorrectly. Power sockets are often keyed in such a manner, to prevent the transposition of live and neutral.
Defensive design in "software engineering is called "defensive programming. "Murphy's law is a well-known statement of the need for defensive design. It is considered the opposite approach to "design by contract.
The DbC approach assumes all client components that invoke an operation on a server component will meet the preconditions specified as required for that operation. Where this assumption is considered too risky (as in multichannel client-server or distributed computing) the opposite "defensive design" approach is taken, …
|""||This "design-related article is a "stub. You can help Wikipedia by expanding it.|