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. Power sockets are often keyed in such a manner, to prevent the transposition of live and neutral. They are also recessed in the wall in a way that makes it impossible to touch connectors once they become live.

Paper cutting machine with two buttons required to be pressed simultaneously to cut the paper. A defensive design to prevent the operator from cutting their own hands because it makes it impossible to accidentally have one hand in the way of harm.

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.

Examples

  • Many electrical connectors apply this principle by being asymmetric.
gollark: Important stuff is replicated to my servers via syncthing, I have a folder for media and stuff which is only synced between the servers (they have more disk space), and I have a bunch of web applications and stuff I cæn access.
gollark: Personally, I think I have a somewhat non-terrible setup.
gollark: Tilt the device to select a key, press the button (or reed switch or something if you want) to input it.
gollark: Alternatively, only have a screen, accelerometer and one button.
gollark: Anything but reed switches is BLOAT!!!!! ! !!!!!!! Just wave magnets at your calculator for that sci-fi aesthetic.

See also

References

    This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.