Poltergeist (computer science)

Poltergeist (computer science)

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. The original definition is by Michael Akroyd 1996 - Object World West Conference::"As a 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."

A poltergeist can often be identified by its name; they are often called "manager_", "controller_", "start_process", etc.

Poltergeists should not be confused with long-lived, state-bearing objects of a pattern such as Model-view-controller, or tier-separating patterns such as Business-Delegate.

To remove a poltergeist, delete the class and insert its functionality in the invoked class, possibly by inheritance or as a mixin.

Poltergeists are examples of an anti-pattern.

ee also

*Anti-pattern

References

*cite book |last=Brown |first=William J. |title=AntiPatterns: Refactoring Software, Architectures, and Projects in Crisis |year=1998 |publisher=John Wiley & Sons |location=New York, USA |isbn=0471197130 |chapter=Chapter 5: Software Development AntiPatterns

External links

* [http://www.antipatterns.com/dev_cat.htm Development AntiPatterns]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Poltergeist (disambiguation) — Poltergeist may refer to:*Poltergeist, demonic spirit or ghost that manifests itself by moving and influencing objects *Poltergeist (album), release by Death metal band Deathchain *Poltergeist (comics), fictional character, a mutant in the Marvel …   Wikipedia

  • University of California, Irvine — Infobox University name = University of California, Irvine motto = Fiat lux (Latin) mottoeng = Let there be light image size = 180px established =1965 type =Public, Land, Space Granted Research University calendar = Quarter endowment =US $234… …   Wikipedia

  • List of Brown University people — The following is a partial list of notable Brown University people, known as Brunonians. It includes alumni, professors, and others associated with Brown University. Notable alumni Note: Class of is used to denote the graduation class of… …   Wikipedia

  • Skinwalker Ranch — Infobox Paranormalplaces Place Name = Skinwalker Ranch Image Caption = Grouping = General AKA = Country = United States Region = Uintah County, Utah Terrain = High desert Owner = NIDS Status = UnknownSkinwalker Ranch is a ranch reputedly located… …   Wikipedia

  • Psychokinesis — The term psychokinesis (from the Greek ψυχή , psyche , meaning mind, soul, heart, or breath ; and κίνησις , kinesis , meaning motion ; literally movement from the mind ), [cite book year = 2001 title = Random House Webster s Unabridged Dictionary …   Wikipedia

  • Jurassic Park (film) — Jurassic Park Theatrical …   Wikipedia

  • Ghosthunter — series= engine= version= ratings= ESRB: Teen (13+) BBFC: 12 PEGI : 12+ OFLC: M platforms= PlayStation 2 media= DVD ROM requirements= input= resolution = 480i (SDTV) 480p (EDTV) aspect ratio = 16:9 / 4:3 Ghosthunter is a video game based on ghost… …   Wikipedia

  • Close Encounters of the Third Kind — For the concept from which this film derives its name, see Close encounter. Close Encounters of the Third Kind Theatrical release poster Directed by …   Wikipedia

  • EarthBound — Mother ist eine Computer Rollenspielserie, die drei Spiele umfasst und die in Japan und teilweise auch in den USA für die Plattformen Nintendo Entertainment System, Super Nintendo und Game Boy Advance erschienen ist. Die Haupt Protagonisten der… …   Deutsch Wikipedia

  • Earthbound — Mother ist eine Computer Rollenspielserie, die drei Spiele umfasst und die in Japan und teilweise auch in den USA für die Plattformen Nintendo Entertainment System, Super Nintendo und Game Boy Advance erschienen ist. Die Haupt Protagonisten der… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”