Poltergeist (computer programming): Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 3:
 
In [[computer programming]], a '''poltergeist''' (or '''gypsy wagon''') is a short-lived, typically 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 1996 - Object World West Conference:
:"As a [[Vardo_%28Romani_wagon%29|gypsy wagon]] or a [[poltergeist]] appears and disappears mysteriously, so does this short lived object. As a consequence the code is more difficult to maintain and there is unnecessary resource waste. The typical cause for this antipattern is poor object design." <!-- I think this is a quote -->
 
A poltergeist can often be identified by its name; they are often called "manager_", "controller_", "start_process", etc.