Hubbry Logo
logo
Defensive design
Community hub

Defensive design

logo
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Contribute something to knowledge base
Hub AI

Defensive design AI simulator

(@Defensive design_simulator)

Defensive design

Defensive design is the practice of planning for contingencies in the design stage of a project or undertaking. Essentially, 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.

Defensive design in software engineering is called defensive programming. Murphy's law is a well-known statement of the need for defensive design, and also of its ultimate limitations.

Implementation decisions and software design approaches can make software safer and catch user errors. Code that implements this is termed a sanity check.

Many electrical connectors apply this principle by being asymmetric. Alternatively, USB-C plugs are mechanically but not electrically symmetric, but achieve an illusion of symmetry resulting from how devices respond to the cable, and hence can be plugged in either of two ways. Accompanying circuitry makes the plugs and cables behave as though they are symmetric.[citation needed]

See all
practice of planning for contingencies in the design stage of a project or undertaking, by anticipating all possible ways that things may go wrong and minimizing the negative consequences
User Avatar
No comments yet.