ArticleslgStudy

science

Defensive design

Defensive design is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Defensive design rather than just read about it. In short: 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.

Defensive design — main illustration
Defensive design — illustration

Key takeaways

  • Defensive design belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Defensive design to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Defensive design from memory before moving on to harder problems.

Reference excerpt

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.

Applications

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

Data entry screens can "sanitize" input by requiring that, for example, numeric fields contain only digits, and if acceptable, a single positive or negative sign and/or decimal point. Inputs can be checked for legitimate values. For example, for counts of workplace injuries (or number of people injured), the number can be 0 but cannot be negative and must be a whole number; for the number of hours worked in one week, the amount for any specified employee can be 0 or fractional, but cannot be negative, greater than 168, or more than 24 times the number of days the employee was in attendance. A word processor requested to load a saved document should scan the document to ensure it is in good form and not corrupted. If it is corrupted, the program should say so, then either accept the partial document that was valid, or refuse the entire document. In either case the program should remain running and not quit.

Electronics 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.

See also Defensible space theory Fail-safe Hostile architecture Idiot-proof Inherent safety Poka-yoke Usability testing Vandal proof Worst-case scenario

References

Illustrations

Defensive design: BS 1363 plug and socket, an example of defensive design: the plug can only be inserted in the correct orientation
BS 1363 plug and socket, an example of defensive design: the plug can only be inserted in the correct orientation

Worked examples

Example 1 — a first encounter with Defensive design

Start with the simplest possible case. Write down what Defensive design claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Defensive design before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Defensive design ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Defensive design

In research
Defensive design appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Defensive design in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Defensive design is common in secondary-school and first-year university syllabi. It links to neighbouring topics Design, so understanding it makes those chapters shorter.
In everyday life
Look for Defensive design outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Defensive design” →

How to study Defensive design in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Defensive design means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Defensive design out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Defensive design in simple terms?

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…

Why does Defensive design matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Defensive design?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Defensive design.

Tags

  • Design

Keep exploring