The Law of Demeter (LoD) or principle of least knowledge is a design guideline for developing software, particularly object-oriented programs
— ...
For further actions, you may consider blocking this person and/or reporting abuse
Dear Dr.Caballero,
I'm sorry to disturb you. I'm a computer science student
Demeter's law should simplify the dependency graph, reducing the overall coupling. The objective of this law is to improve encapsulation.
An object of class B (status information of A) should not return to A an object of class C (status information of B).
Right?
Thank you
But "person.isZipCode(zipCode)" is (reverse) coupled to the consumer, isn't it? Even worse, we must also change House for getting zipcode or any other "random" information, such as "person.isLivingInCircle(geoCoords, maxDist)" or "person.isZipCodePrime()".
Great post!
The GitHub repo seem not reachable...
Hi Matteo!
I just fixed!
Thanks.
saved!
Thanks! Any question or comments are welcome! 😊
Great post! Keep it up!!
Thanks Manuel!
Awesome Post.
Thanks Oliver 😊!