Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Law of Demeter


Related Topics
A44

In the News (Fri 11 Dec 09)

  
  Ancient Greek Religion: CULT OF DEMETER & KORE 1
Demeter was usually worshipped in conjunction with her daughter Kore (or Persephone), goddess of the underworld and the spring growth.
At Alimos is a sanctuary of Demeter Thesmophoros (Lawgiver) and of Kore (the Maid), and...
Before the temple stand a few statues of the women who have served Demeter as her priestess, and on passing inside you see seats on which the old women wait for the cows to be driven in one by one, and images, of no great age, of Athena and Demeter.
www.theoi.com /Cult/DemeterCult.html   (3908 words)

  
 Greek Mythology: DEMETER GODDESS OF
Demeter was the goddess of grain and bread, the staple food of the ancient Greeks.
Demeter was worshipped throughout Greece under the title of Thesmophoros (Law-Giver) and was regarded as the goddess who instructed mankind in law.
Demeter was identified with the Roman goddess Ceres and the Egyptian goddess Isis.
www.theoi.com /Olympios/DemeterGoddess.html   (2810 words)

  
 Law of Demeter
The Demeter Project which ever since was strongly influenced by the Law of Demeter.
In 2003/2004 the Law of Demeter was revisited for Karl Lieberherr's ICSE 2004 keynote
The Law of Demeter was refined from "Only talk to your friends" to "Only talk to your friends who share your concerns" and this refined form is called the Law of Demeter for Concerns (LoDC).
www.ccs.neu.edu /home/lieber/LoD.html   (614 words)

  
 Introducing Demeter and its Laws
The Law of Demeter says that if I need to request a service of an objects sub-part, I should instead make the request of the object itself and let it propagate this request to all relevant sub-parts, thus the object is responsible for knowing its internal make-up instead of the method that uses it.
AP in general, and the Demeter method and tools, lift object-oriented programming to a higher level of abstraction by allowing the user to focus on the essential classes in a network and the invariants among their relationships.
Demeter's "succinct traversal specifications" allow us to encode _only_ the source, destination, and key intermediate members (invariants) of an information access (non-trivial data-flow) without having to know about all the non-critical links in the chain.
www.cmcrossroads.com /bradapp/docs/demeter-intro.html   (1968 words)

  
 Law of Demeter - Wikipedia, the free encyclopedia
The Law of Demeter (LoD), or Principle of Least Knowledge is a design guideline for developing software, particularly object-oriented programs.
It is so named for its origin in the Demeter Project, an adaptive programming and aspect-oriented programming effort.
This project was named in honor of Demeter, "distribution-mother" and goddess of agriculture, to signify a bottom-up philosophy of programming which is also embodied in the law itself.
en.wikipedia.org /wiki/Law_of_Demeter   (489 words)

  
 studygroup, a weblog by George Girton   (Site not responding. Last check: 2007-10-13)
Demeter is the Greek goddess of grain, or more generally agriculture, so you might say the metaphor of 'growing' object-oriented software would be inspired by the law of Demeter.
The Law of Demeter you would find that notion to be incorrect, except as an expression of one type of very general metaphor for software development.
So the law, "that a method should access data passed as arguments, linked via associations, or obtained via calls to operations on other neighbouring data", has nothing to do with the fact that Demeter is the mother of Persephone, or the goddess of grain, or any other details of her mysterious, fascinating, and considerable mythology.
www.thedailychannel.com /journals/studygroup/2002oct.htm   (277 words)

  
 Law Of Demeter Is Invalid
You are ignoring the intent of demeter and focusing on the words too much, it's not an absolute law, it's a guidline to help reduce coupling in code, and a valid one at that.
Demeter is an aid to refactoring, and true and false aren't going to change, use your brain and know when to apply the guideline.
The Law states which "toys" you can play with; baz, foo, and hoge were not passed in, created by the method (unless bar, baz, and foo are all factories, but why would you need a 3-deep chain of AbstractFactorys?), or part of the enclosing method.
c2.com /cgi/wiki?LawOfDemeterIsInvalid   (1374 words)

  
 Law of Demeter : LoD   (Site not responding. Last check: 2007-10-13)
The Law of Demeter (LoD) is a design guideline for developing software, particularly object-oriented programs.
A disadvantage of the Law of Demeter is that it requires writing a large number of small "wrapper" methods to propogate method calls to the components - these can increase initial development time, increase space overhead, and noticeably decrease performance.
Basili et al published experimental results in 1996 suggesting that the Law of Demeter was a valid way to reduce the probability of software faults.
www.explainthis.info /lo/lod.html   (547 words)

  
 The Law Of Demeter And Object Oriented Programming « Abhijit Nadgouda @ iface
One of the notable ones is the Law Of Demeter.
The Law of Demeter (LoD), more accurately Law of Demeter for Functions/Methods (LoD-F), is a style for OOP that uses the principle of least knowledge of other objects.
A more general formulation of the Law of Demeter is: Each unit should have only limited knowledge about other units: only units “closely” related to the current unit.
iface.wordpress.com /2006/03/07/the-law-of-demeter-and-object-oriented-programming   (630 words)

  
 Chapter Five: Bend, or Break
The Law of Demeter says that methods should only call other methods in the same class (including itself), methods belonging to a parameter, methods of an object created by the method itself, or methods of any directly held component objects.
The Law of Demeter states that an object's methods can only call methods in the same class, the methods of an input parameter, the methods of an object created by the current object, or any methods of directly held objects.
By conforming to this "law", a software system can ensure that change is not far-reaching; that is, change remains relatively local to a class, and therefore the system remains minimally coupled.
cs.allegheny.edu /wiki/cs290F2002/28   (1037 words)

  
 Law Of Demeter
The Demeter literature talks about the introduction of lots of additional small methods, which started getting unwieldy to add manually, and is part of why the Demeter tools exists, so they can be autogenerated as needed.
Taken from http://www.ccs.neu.edu/home/lieber/LoD.html: 2003 was the 15 Year Anniversary of the Law of Demeter: The Law of Demeter is a simple style rule for designing ObjectOriented systems.
The name "Law of Demeter" was chosen because the style rule was discovered while working on the The Demeter Project which ever since was strongly influenced by the Law of Demeter.
c2.com /cgi/wiki?LawOfDemeter   (1692 words)

  
 Death and Return in the Myth of Persephone by Kathie Carlson: Journal of Mythic Arts, Spring 2006, Endicott Studio
The presence of Hecate and her companioning of Demeter as she seeks to know what has become of her daughter is highly significant, even though it is not emphasized by Homer.
According to an Orphic hymn to Demeter, in which she is addressed as 'the ghostly mother' (further linking her with her underworld daughter), there were no kings in Eleusis; Demeter went instead to the house of a peasant named Dysaules.
In this version of the myth, Demeter went with the swineherd to retrieve both his pigs and her daughter after he showed her the way.17 Thus Mother and Daughter alike made journeys to the underworld, one voluntarily to retrieve what belongs to her, the other in terror and much against her will.
www.endicott-studio.com /rdrm/rrpersephone2.html   (876 words)

  
 MemoRanda
The Law of Demeter (LoD) is a heuristic for good object encapsulation.
I assert that immutable objects are an exception to the Law of Demeter.
LoD says you can't return references or pointer to your object's own member data, but containers are given data to hold, and so they can return that data.
homepage.mac.com /keithray/blog/2003/04/18   (1323 words)

  
 Color Modeling and The Law of Demeter, by David J. Anderson   (Site not responding. Last check: 2007-10-13)
The Law of Demeter was first proposed by Ian Holland of Northeastern University, Boston, MA, in 1987.
Knowing and applying the Law of Demeter as part of a coding style guide and enforcing it with design and code reviews is a major contributor to code reuse and sustained high project velocity.
It is not well understood that the DNC makes use of the Law of Demeter and classes hold only dynamic dependencies to their immediate neighbors.
bdn.borland.com /article/0,1410,32543,00.html   (945 words)

  
 Comp.Object FAQ Version 1.0.5 (12-13) Announcement - Law of Demeter/Adaptive Software   (Site not responding. Last check: 2007-10-13)
Yes, the Law of Demeter paper is available in electronic form on the net.
The Law of Demeter idea has been automated in the Demeter Tools/C++ as an adaptive software tool which automatically makes much of your C++ code compliant with the Law of Demeter.
The Demeter Tools/C++ lift object-oriented programming to a higher level of abstraction by allowing the user to focus on the essential and stable classes.
www.cs.cmu.edu /Groups/AI/util/html/faqs/lang/oop/faq-doc-24.html   (216 words)

  
 Law of Demeter
KPV 2003-03-02 I think the Law of Demeter is a good maxim but that examples for tcl are incorrect.
One of the other implications of the Law of Demeter with tcl is that object-oriented extensions should make it easy and efficient to pass on method calls to subcomponents.
DKF 2005-12-20: Looking at this discussion, I think the main thing to note is that although the Law of Demeter does apply to Tcl, it's not particularly relevant on the level of a list value.
wiki.tcl.tk /8505   (1440 words)

  
 JayFlowers > The Law of Demeter and Testability
JayFlowers > The Law of Demeter and Testability
The Law of Demeter, also know as the Principle of Least Knowledge, is important to controlling the type population of a test subject.
Interestingly Endo-Testing Unit Testing with Mock Objects by Tim Mackinnon, Steve Freeman and, Philip Craig presents the view that “…code developed with Mock Objects tends to conform to the Law of Demeter, as an emergent property.
jayflowers.com /WordPress/?p=78   (708 words)

  
 Law of Demeter and Smalltalk
When all your conditional and looping constructs are implemented with messages, the Law of Demeter becomes excessively strict.
The Law of Demeter would state that the first = is ok (since the receiver is "an object that a method called on the enclosing object returns") but the and: message is bad because it sent to the result of another message send.
If the Law of Demeter made an exception for primitive types and messages, it would probably be ok. As is, things that would be perfectly fine in other languages would be illegal in Smalltalk.
www.cincomsmalltalk.com /userblogs/buck/blogView?showComments=true&entry=3250679469   (273 words)

  
 CS535: Doc 32, Law of Demeter
Doc 32, Law of Demeter Slide # 1
Doc 32, Law of Demeter Slide # 2
Doc 32, Law of Demeter Slide # 3
www.eli.sdsu.edu /courses/fall96/cs535/notes/Demeter/Demeter.html   (350 words)

  
 CS696: Doc 5, Law of Demeter
Doc 5, Law of Demeter Slide # 1
Doc 5, Law of Demeter Slide # 2
Doc 5, Law of Demeter Slide # 5
www.eli.sdsu.edu /courses/spring97/cs696/notes/demeter/demeter.html   (375 words)

  
 Andres Aguiar's Weblog : O/R Mappers, the Law of Demeter, and Lazy Loading
This idea is not new, and is called the Law of Demeter.
In sum, if you want to apply the Law of Demeter to your domain model and your persistence layer, you should never write object.object.property, and you should use the shortcuts to know what to eager load.
The point is that the LoD should be used carefully and not applied generally, otherwise you end up with much more unnatural and overburdened with delegation classes.
weblogs.asp.net /aaguiar/archive/2004/07/02/172100.aspx   (1048 words)

  
 OOP Lecture - 3 April 1996   (Site not responding. Last check: 2007-10-13)
Law of Demeter In any method M attached to a class C, only methods defined by the following classes may be used:
As in life, the law doesn't make us good, it merely draws distinctions between those practices that are known to generally produce undesirable results and those that aren't.
In particular, global data coupling can be rampantly exploited in a program satisfying the law of demeter.
www.cise.ufl.edu /~jnw/OOCourse/Lectures/04.03.html   (468 words)

  
 Darren Hobbs: Don't break the law of Demeter
The best summary of the law of demeter I saw was from c2.com.
That doesn't break the law, because it prevents foo's caller from knowing about bar and baz, and foo from knowing about baz.
If you take it to the extreme you find that getter methods break the law of demeter.
www.darrenhobbs.com /archives/000435.html   (286 words)

  
 Law Of Demeter Revisited
After all, it was a valid law most of functional programs would have to be considered smelly or bad style, because all you do in FunctionalProgramming is navigate from the component of one structure to another, sometimes using recursion even.
As per the original LawOfDemeter this code is found in violation of the law.
Thanks to Daniel T. from UseNet comp.object for pointing out to me that all I did was not really to invalidate the law but coming out with more exceptions to the law, he gave me further clues with regards to both positives and negatives to the law.
c2.com /cgi/wiki?LawOfDemeterRevisited   (1582 words)

  
 Keith Devens - Weblog: Entry 376 - August 28, 2001   (Site not responding. Last check: 2007-10-13)
I did a search on Google, and the first link seems to be a very good one, where they present the Law of Demeter as follows: "The Law of Demeter is a simple style rule for designing object-oriented systems.
Here are some violations of the Law of Demeter.
I think I first heard of the Law of Demeter from The Pragmatic Programmer book.
keithdevens.com /weblog/archive/2001/Aug/28/376   (267 words)

  
 Gadgetopia | Programming and Web Development
Law of Demeter: I just finished reading “The Pragmatic Programmer” by Dave Thomas.
Thomas himself implies this law when he discusses “orthoganality” and “decoupling” earlier in the book.
I’ve broken the Law of Demeter before and paid for it.
www.gadgetopia.com /category/10?p=8   (4669 words)

  
 Art of Unit Testing: Part 2 | Python | Python
Demeter means that you should have as few dots(in Python) in your
Of course, you'll recognise that I'm still violating the law of Demeter.
Yes, the law of Demeter does require that.
www.gossamer-threads.com /lists/python/python/61836   (5732 words)

  
 Demeter - OneLook Dictionary Search
Demeter : The American Heritage® Dictionary of the English Language [home, info]
Demeter : Columbia Encyclopedia, Sixth Edition [home, info]
Phrases that include Demeter: christine demeter, demeter chloe, demeter international, demeter thesmophoros, law of demeter
www.onelook.com /cgi-bin/cgiwrap/bware/dofind.cgi?word=Demeter   (208 words)

  
 untitled   (Site not responding. Last check: 2007-10-13)
the Law of Demeter) which encodes the ideas of encapsulation and modularity in an
both of which are caused by the application of the Law.
The goal of the Law of Demeter is to organize and reduce the behavioral dependencies between
www.softcomp.com /class7/demeter.htm   (424 words)

  
 Demeter / Center for Software Sciences
Demeter in Action to get an idea of what others have done.
The Demeter Method addresses the issues of changing requirements in open, evolving systems through adaptive programming.
The Demeter Association is an independent agency that certifies Biodynamic farms in the U.S. and abroad.
www.ccs.neu.edu /home/lieber/demeter.html   (499 words)

  
 LawOfDemeter
The "Law of Demeter" is one of those nifty guidelines for good OO code / design.
The balance between spreading knowledge and adding overhead is a judgment call but I generally vote for more encapsulation until the overhead becomes too painful.
And in my world "log on" is a use case because without a use case I don't have requirements and without requirements I don't write code.
www.surfscranton.com /architecture/LawOfDemeter.htm   (1022 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.