Object orgy
From Wikipedia, the free encyclopedia
In computer programming, object orgy is a term, common to the Perl programming language community, describing a common failure (or 'anti-pattern') in object-oriented programming design. An object orgy is a condition in which failure to use encapsulation, and thus permitting unrestricted access to the internals of objects, results in a difficult or impossible to maintain maze of interactions (colloquially: a rat's nest or spaghetti code).
The failure of encapsulation, which should prevent manipulation of the objects except in controlled or structured ways, can result either from making access to the underlying data public or by providing free access via getter/setter methods. It can also occur from objects holding references to each other. Whatever the source, such access means that it is difficult for the programmer to determine which pieces of code in the source could manipulate an object.