Content deleted Content added
No edit summary |
m Minor grammatical and spacing changes |
||
Line 1:
In [[computer programming]] a '''poltergeist''', or '''gypsy wagon''', is a short lived object used to perform initialization or to invoke methods in
A '''poltergeist''' is an example of an [[anti-pattern]].
Line 5:
The original definition is by Michael Akroyd 1996 - Object World West Conference.
As a gypsy wagon or a poltergeist
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.
Typically these are stateless "supervision" classes, used only to call methods of other classes, so several time are called "manager_" , "controller_", "start_process", etc..▼
▲Gypsy wagons can often be identified by their names. Typically
To remove a Gypsy Wagon, delete the class and insert its ▼
▲To remove a Gypsy Wagon, delete the class and insert its functionality in the invoked class.
[[Category:Anti-patterns]]
|