Content deleted Content added
→top: Fixed reference date issue(s) (see CS1 maint: date format for details) and AWB general fixes |
quote template, cn |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1:
{{Short description|Computer programming object}}
In [[computer programming]], a '''poltergeist''' (or '''gypsy wagon''') is a short-lived, typically [[State (computer science)|stateless]] object used to perform initialization or to invoke methods in another, more permanent class. It is considered an [[anti-pattern]]. The original definition is by Michael Akroyd
A poltergeist can often be identified by its name; they are often called "manager_", "controller_", "supervisor", "start_process", etc.
Line 10 ⟶ 11:
To remove a poltergeist, delete the class and insert its functionality in the invoked class, possibly by [[Inheritance (object-oriented programming)|inheritance]] or as a [[mixin]].
There have been proposed methods in detecting poltergeists in code for refactoring.<ref>{{cite
==See also==
|