Skip to content
LoDRaV is a simple project thet contains examples to how follow or not the The Law of Demeter.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


LoDRaV means Law of Demeter: Respect and Violation.

LoDRaV is a simple project divided into two layers: one that stores the interfaces and another that stores the entities.

The main program contains two examples that demonstrate how to follow or not the The Law of Demeter.

Do you know what is the Law of Demeter?

In object-oriented programming there is a recommendation called Law of Demeter or LoD which suggests that a method m of a class A should only call the methods of class A itself, objects accessible through attributes in A, objects passed as arguments to m or objects created within the m.

Read more about LoD on Wikipedia

In short: do not talk to strangers.

You can’t perform that action at this time.