Defensive design GudangMovies21 Rebahinxxi LK21

      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.
      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" inputs, e.g. numeric fields contain only digits, signs and a single decimal point if appropriate.
      Inputs can be checked for legitimate values, e.g. for counts of workplace injuries (or number of people injured) the number can be 0 but can't be negative and must be a whole number; for number of hours worked in one week the amount for any specified employee can be 0, can be fractional, but can't be negative and can't be greater than 168, nor more than 24 times the number of days they were in attendance.
      A word processor requested to load a saved document should scan it 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 it 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
      Idiot-proof
      Inherent safety
      Poka-yoke
      Usability testing


      References

    Kata Kunci Pencarian:

    defensive designdefensive design definitiondefensive design examplesdefensive design computer sciencedefensive design for the webdefensive design has multiple layers which aredefensive design architecturedefensive design meaningdefensive design concepts are factored in while creating databasesdefensive design principle
    The Growing Business Of Defensive Urban Design

    The Growing Business Of Defensive Urban Design

    Defensive Design

    Defensive Design

    Defensive Design designs, themes, templates and downloadable graphic ...

    Defensive Design designs, themes, templates and downloadable graphic ...

    defensive design – Blog | DevsZone

    defensive design – Blog | DevsZone

    defensive design - GCSE Computer Science Theory

    defensive design - GCSE Computer Science Theory

    defensive-design-new | Matt Olpinski

    defensive-design-new | Matt Olpinski

    Defensive Design for the Web by Matthew Linderman, Jason Fried, 37 Signals

    Defensive Design for the Web by Matthew Linderman, Jason Fried, 37 Signals

    Defensive Designs | Unschooling

    Defensive Designs | Unschooling

    Defensive Architecture - Why Am I So Defensive? - Continuum Loop Inc.

    Defensive Architecture - Why Am I So Defensive? - Continuum Loop Inc.

    Producing Robust Programs 1 - Defensive Design | Teaching Resources

    Producing Robust Programs 1 - Defensive Design | Teaching Resources

    Defensive Design - Coggle Diagram

    Defensive Design - Coggle Diagram

    Defensive Architecture - Learning Buildings Research Group Glenn ...

    Defensive Architecture - Learning Buildings Research Group Glenn ...