Metraipolis › archive › dc_e2dc68867951

Action at a distance (computer programming) — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Action_at_a_distance_(computer_programming)
License (as archived)
CC-BY-SA-4.0
Archived
2026-11-07T11:45:01.356Z
SHA-256 of the archived text
cae20ece53c4759b41a30e3322f3eb5f460496d29977b3ea8ed8cc7bc5324668
Stable URL of this page
https://metraipolis.com/documento/dc_e2dc68867951

How to cite

Action at a distance (computer programming) — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Action_at_a_distance_(computer_programming) (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_e2dc68867951 (Metraipolis archive dc_e2dc68867951, sha256 cae20ece53c4759b41a30e3322f3eb5f460496d29977b3ea8ed8cc7bc5324668)
BibTeX
@misc{dce2dc68867951,
  title = {Action at a distance (computer programming) — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Action_at_a_distance_(computer_programming)},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_e2dc68867951; sha256 cae20ece53c4759b41a30e3322f3eb5f460496d29977b3ea8ed8cc7bc5324668},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Action_at_a_distance_(computer_programming). Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Action at a distance is an anti-pattern in computer science in which behavior in one part of a program varies wildly based on difficult or impossible to identify operations in another part of the program. The way to avoid the problems associated with action at a distance is a proper design, which avoids global variables and alters data only in a controlled and local manner, or usage of a pure functional programming style with referential transparency. The term is based on the concept of action at a distance in physics, which may refer to a process that allows objects to interact without a mediator particle such as the gluon. In particular, Albert Einstein referred to quantum nonlocality as "spooky action at a distance". Software bugs due to action at a distance may arise because a program component is doing something at the wrong time, or affecting something it should not. It is very difficult, however, to track down which component is responsible. Side effects from innocent actions can put the program in an unknown state, so local data is not necessarily local. The solution in this particular scenario is to define which components should be interacting with which others. A proper design that accurately defines the interface between parts of a program, and that avoids shared states, can largely eliminate problems caused by action at a distance.

Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico).
Fonte: Wikipedia in inglese, voce «Action at a distance (computer programming)» — https://en.wikipedia.org/wiki/Action_at_a_distance_(computer_programming)
Wikidata Q3631502: «undesirable phenomenon in software engineering» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q3631502
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Action_at_a_distance_(computer_programming)?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1329485461, consultata il 2026-11-07T11:40:45.818Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 3e4d3ea0e1543628579fb2e2287e72261fb0d125d503eae8f948aa4a6305af1c