in reply to Re^3: Are lvalue methods (as properties) a good idea?
in thread Are lvalue methods (as properties) a good idea?
The best I could find was wikipedia's entry on law of demeter.
"More formally, the Law of Demeter for functions requires that a method called from an object may only invoke the methods of the following kinds of objects:In particular, an object should avoid invoking methods of a member object returned by another method."
- itself
- its parameters
- any objects it creates/instantiates
- its direct component objects
There is TONS written about LoD when googled, but nothing that gave me a real "aha" feeling. It all left me wondering, is this real insight, or cargo cult programming?
Hopefully the above definition will help a bit.
thomas.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: The Pretty Good Idea of Demeter (Was: Definition of Law of Demeter)
by jplindstrom (Monsignor) on Jan 14, 2005 at 13:17 UTC | |
by fergal (Chaplain) on Jan 16, 2005 at 13:07 UTC | |
by Aristotle (Chancellor) on Jan 17, 2005 at 22:30 UTC | |
by jplindstrom (Monsignor) on Jan 16, 2005 at 14:52 UTC | |
Re: Definition of Law of Demeter
by Aristotle (Chancellor) on Jan 14, 2005 at 10:56 UTC |