An Entity of Type: Thing, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

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

Property Value
dbo:abstract
  • 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 are 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. (en)
  • In informatica, l'espressione azione denota un anti-pattern che ricorre frequentemente nella progettazione e lo sviluppo di programmi per calcolatore. Un'azione a distanza si verifica quando un programma viola il principio generale per cui una dichiarazione in una certa sua parte non deve cambiare il comportamento di un'altra parte in modo drastico e invisibile. L'espressione ha origine dall'espressione omonima usata in fisica. (it)
  • Na ciência da computação, a ação à distância é um antipadrão (uma técnica de ofuscação) em que o comportamento em uma parte de um programa varia enormemente com base na dificuldade ou impossibilidade de identificar operações em outra parte do programa. O termo é baseado no conceito de ação à distância na física, que pode se referir a um processo que permite que objetos interajam sem uma partícula mediadora como o glúon. Em particular, Albert Einstein referiu-se à não localidade quântica como "ação fantasmagórica à distância". (pt)
  • 远隔作用(Action at a distance)是一種程式設計中的反模式,是指程式某一部份的行為會廣泛的受到程式其他部份指令的影響,而且要找到影響其他程式的指令很困難,甚至根本無法進行。 避免远隔作用的方法是避免使用全域變數,利用可控制的區域變數來調整資料,或是使用有的純函數程式語言。 此詞語的由來是來自物理學中的遠距作用,是指一個物體在和另一物體中間沒有粒子交換的情形下,影響另一物體的現象,量子力學的量子纏結就是遠距作用的一個例子,愛因斯坦將此稱為「鬼魅似的遠距作用」(spooky action-at-a-distance)。 远隔作用造成的程序错误常是因為程式模組的特定機能在錯誤的時間動作,或是影響了不應當影響的變數。不過很難找出是哪一個模組造成的影響。一些看似沒有問題的動作的副作用使得程式在一個未知的狀態中,因此局部的資料也可能不是局部的,有可能受到其他模組的影響。改善远隔作用的方式是定義一個模組可以影響模組的範圍。若在軟體設計時準確的定義各模組之間的介面,避免使用共享的資料或是全域變數,可以大幅減少远隔作用造成的問題。 (zh)
dbo:wikiPageID
  • 868838 (xsd:integer)
dbo:wikiPageLength
  • 4908 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1102146836 (xsd:integer)
dbo:wikiPageWikiLink
dbp:cs1Dates
  • y (en)
dbp:date
  • August 2022 (en)
dbp:wikiPageUsesTemplate
dcterms:subject
gold:hypernym
rdfs:comment
  • In informatica, l'espressione azione denota un anti-pattern che ricorre frequentemente nella progettazione e lo sviluppo di programmi per calcolatore. Un'azione a distanza si verifica quando un programma viola il principio generale per cui una dichiarazione in una certa sua parte non deve cambiare il comportamento di un'altra parte in modo drastico e invisibile. L'espressione ha origine dall'espressione omonima usata in fisica. (it)
  • Na ciência da computação, a ação à distância é um antipadrão (uma técnica de ofuscação) em que o comportamento em uma parte de um programa varia enormemente com base na dificuldade ou impossibilidade de identificar operações em outra parte do programa. O termo é baseado no conceito de ação à distância na física, que pode se referir a um processo que permite que objetos interajam sem uma partícula mediadora como o glúon. Em particular, Albert Einstein referiu-se à não localidade quântica como "ação fantasmagórica à distância". (pt)
  • 远隔作用(Action at a distance)是一種程式設計中的反模式,是指程式某一部份的行為會廣泛的受到程式其他部份指令的影響,而且要找到影響其他程式的指令很困難,甚至根本無法進行。 避免远隔作用的方法是避免使用全域變數,利用可控制的區域變數來調整資料,或是使用有的純函數程式語言。 此詞語的由來是來自物理學中的遠距作用,是指一個物體在和另一物體中間沒有粒子交換的情形下,影響另一物體的現象,量子力學的量子纏結就是遠距作用的一個例子,愛因斯坦將此稱為「鬼魅似的遠距作用」(spooky action-at-a-distance)。 远隔作用造成的程序错误常是因為程式模組的特定機能在錯誤的時間動作,或是影響了不應當影響的變數。不過很難找出是哪一個模組造成的影響。一些看似沒有問題的動作的副作用使得程式在一個未知的狀態中,因此局部的資料也可能不是局部的,有可能受到其他模組的影響。改善远隔作用的方式是定義一個模組可以影響模組的範圍。若在軟體設計時準確的定義各模組之間的介面,避免使用共享的資料或是全域變數,可以大幅減少远隔作用造成的問題。 (zh)
  • 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 are 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. (en)
rdfs:label
  • Action at a distance (computer programming) (en)
  • Azione a distanza (informatica) (it)
  • Ação à distância (programação de computador) (pt)
  • 远隔作用 (计算机科学) (zh)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License