Defensive design

Last updated

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.

Contents

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.

Applications

Computer software

Implementation decisions and software design approaches can make software safer and catch user errors.

Electronics

Many electrical connectors apply this principle by being asymmetric.

See also

Related Research Articles

<span class="mw-page-title-main">Apple IIe</span> Third model in the Apple II series of personal computers

The Apple IIe is the third model in the Apple II series of personal computers produced by Apple Computer. It was released as the successor to the Apple II Plus. The e in the name stands for enhanced, referring to the fact that several popular features were now built-in that were formerly only available as upgrades or add-ons in earlier models. It is notable as the first Apple II to offer built-in lower-case and 80 columns text support, as well a full 64K RAM–all while reducing the total chip count from previous models by approximately 75%.

<span class="mw-page-title-main">SCART</span> 21-pin connector for audio-visual equipment

SCART is a French-originated standard and associated 21-pin connector for connecting audio-visual (AV) equipment. The name SCART comes from Syndicat des Constructeurs d'Appareils Radiorécepteurs et Téléviseurs, "Radio and Television Receiver Manufacturers' Association", the French organisation that created the connector in the mid-1970s. The related European standard EN 50049 has then been refined and published in 1978 by CENELEC, calling it péritelevision, but it is commonly called by the abbreviation péritel in French.

<span class="mw-page-title-main">Apple Desktop Bus</span> Proprietary bit-serial peripheral bus

Apple Desktop Bus (ADB) is a proprietary bit-serial peripheral bus connecting low-speed devices to computers. It was introduced on the Apple IIGS in 1986 as a way to support low-cost devices like keyboards and mice, allowing them to be connected together in a daisy chain without the need for hubs or other devices. Apple Desktop Bus was quickly introduced on later Macintosh models, on later models of NeXT computers, and saw some other third-party use as well. Like the similar PS/2 connector used in many PC-compatibles at the time, Apple Desktop Bus was rapidly replaced by USB as that system became popular in the late 1990s; the last external Apple Desktop Bus port on an Apple product was in 1999, though it remained as an internal-only bus on some Mac models into the 2000s.

<span class="mw-page-title-main">Electrical connector</span> Device used to join electrical conductors

Components of an electrical circuit are electrically connected if an electric current can run between them through an electrical conductor. An electrical connector is an electromechanical device used to create an electrical connection between parts of an electrical circuit, or between different electrical circuits, thereby joining them into a larger circuit.

<span class="mw-page-title-main">Phone connector (audio)</span> Family of connectors typically used for analog signals

A phone connector is a family of cylindrically-shaped electrical connectors primarily for analog audio signals. Invented in the late 19th century for telephone switchboards, the phone connector remains in use for interfacing wired audio equipment, such as headphones, speakers, microphones, mixing consoles, and electronic musical instruments. A male connector, is mated into a female connector, though other terminology is used.

<span class="mw-page-title-main">Hot swapping</span> Concept in computing

Hot swapping is the replacement or addition of components to a computer system without stopping, shutting down, or rebooting the system; hot plugging describes the addition of components only. Components which have such functionality are said to be hot-swappable or hot-pluggable; likewise, components which do not are cold-swappable or cold-pluggable.

<span class="mw-page-title-main">DIN connector</span> Electrical connector

The DIN connector is an electrical connector that was standardized by the Deutsches Institut für Normung (DIN), the German Institute for Standards, in the mid 1950's, initially with 3 pins for mono, but when stereo connections and gear appeared in late 1950's, versions with 5 pins or more were launched. The male DIN connectors (plugs) feature a 13.2 mm diameter metal shield with a notch that limits the orientation in which plug and socket can mate. The range of DIN connectors, different only in the configuration of the pins, have been standardized as DIN 41524 / IEC/DIN EN 60130-9 ; DIN 45322 ; DIN 45329 / IEC/DIN EN 60130–9 ; and DIN 45326 / IEC/DIN EN 60130-9.

<span class="mw-page-title-main">Schuko</span> Type of AC power plug and socket

Schuko is a plug/socket system used in much of Europe and in many countries east of there. It is a registered trademark referring to a system of AC power plugs and sockets that is defined as "CEE 7/3" (sockets) and "CEE 7/4" (plugs). A Schuko plug features two round pins of 4.8 mm diameter for the line and neutral contacts, plus two flat contact areas on the top and bottom side of the plug for protective earth (ground). The socket has a predominantly circular recess which is 17.5 mm deep with two symmetrical round apertures and two earthing clips on the sides of the socket positioned to ensure that the earth is always engaged before live pin contact is made. Schuko plugs and sockets are symmetric AC connectors. They can be mated in two ways, therefore line can be connected to either pin of the appliance plug. As with most types of European sockets, Schuko sockets can accept Europlugs. Schuko plugs are considered a very safe design when used with Schuko sockets, but they can also mate with other sockets to give an unsafe result.

<span class="mw-page-title-main">AC power plugs and sockets</span> Connector used to connect to mains power

AC power plugs and sockets connect devices to mains electricity to supply them with electrical power. A plug is the connector attached to an electrically-operated device, often via a cable. A socket is fixed in place, often on the internal walls of buildings, and is connected to an AC electrical circuit. Inserting the plug into the socket allows the device to draw power from this circuit.

<span class="mw-page-title-main">IEC 60309</span> International standard for industrial plugs

IEC 60309 is a series of international standards from the International Electrotechnical Commission (IEC) for "plugs, socket-outlets and couplers for industrial purposes". They are also referred to as "pin & sleeve" connectors in North America or as "CeeForm" connectors in the entertainment industry. The maximum voltage allowed by the standard is 1000 V DC or AC; the maximum current, 800 A; and the maximum frequency, 500 Hz. The ambient temperature range is −25 °C to 40 °C.

<span class="mw-page-title-main">Industrial and multiphase power plugs and sockets</span> Type of plug and socket design

Industrial and multiphase plugs and sockets provide a connection to the electrical mains rated at higher voltages and currents than household plugs and sockets. They are generally used in polyphase systems, with high currents, or when protection from environmental hazards is required. Industrial outlets may have weatherproof covers, waterproofing sleeves, or may be interlocked with a switch to prevent accidental disconnection of an energized plug. Some types of connectors are approved for hazardous areas such as coal mines or petrochemical plants, where flammable gas may be present.

<span class="mw-page-title-main">Gender of connectors and fasteners</span> Male components insert into female components

In electrical and mechanical trades and manufacturing, each half of a pair of mating connectors or fasteners is conventionally assigned the designation male or female. The female connector is generally a receptacle that receives and holds the male connector. Alternative terminology such as plug and socket or jack are sometimes used, particularly for electrical connectors.

Electrical wiring in the United Kingdom is commonly understood to be an electrical installation for operation by end users within domestic, commercial, industrial, and other buildings, and also in special installations and locations, such as marinas or caravan parks. It does not normally cover the transmission or distribution of electricity to them.

<span class="mw-page-title-main">Extension cord</span>

An extension cord (US), extension cable, power extender, drop cord, or extension lead (UK) is a length of flexible electrical power cable (flex) with a plug on one end and one or more sockets on the other end. The term usually refers to mains extensions but is also used to refer to extensions for other types of cabling. If the plug and power outlet are of different types, the term "adapter cord" may be used. Most extension cords range from around 2 to 30 feet in length although they are made up to 300 feet (91.44 m) in length.

Pagination, also known as paging, is the process of dividing a document into discrete pages, either electronic pages or printed pages.

<span class="mw-page-title-main">NEMA connector</span> Power plugs and receptacles used in North America and some other regions

NEMA connectors are power plugs and receptacles used for AC mains electricity in North America and other countries that use the standards set by the US National Electrical Manufacturers Association. NEMA wiring devices are made in current ratings from 15 to 60 amperes (A), with voltage ratings from 125 to 600 volts (V). Different combinations of contact blade widths, shapes, orientations, and dimensions create non-interchangeable connectors that are unique for each combination of voltage, electric current carrying capacity, and grounding system.

In computer science, robustness is the ability of a computer system to cope with errors during execution and cope with erroneous input. Robustness can encompass many areas of computer science, such as robust programming, robust machine learning, and Robust Security Network. Formal techniques, such as fuzz testing, are essential to showing robustness since this type of testing involves invalid or unexpected inputs. Alternatively, fault injection can be used to test robustness. Various commercial products perform robustness testing of software analysis.

<span class="mw-page-title-main">Y-cable</span> Cable with three ends

A Y-cable, Y cable, or splitter cable is a cable with three ends: one common end and two other ends. The Y-cable can resemble the Latin letter "Y".

<span class="mw-page-title-main">AC power plugs and sockets: British and related types</span> AC power plug type

Plugs and sockets for electrical appliances not hardwired to mains electricity originated in the United Kingdom in the 1870s and were initially two-pin designs. These were usually sold as a mating pair, but gradually de facto and then official standards arose to enable the interchange of compatible devices. British standards have proliferated throughout large parts of the former British Empire.

A microphone blocker is a phone microphone connector used to trick feature phones that have a physical microphone switch to disconnect the microphone. Microphone blockers won't operate on smartphones or laptops because the microphone is controlled with software rather than a physical switch.

References