Top "Law-of-demeter" questions

The Law of Demeter (LoD) or Principle of Least Knowledge is a design guideline for developing software, particularly object-oriented programs.

How to solve the violations of the Law of Demeter?

A colleague and I designed a system for our customer, and in our opinion we created a nice clean design. …

language-agnostic design-patterns coupling law-of-demeter
Coupling, Cohesion and the Law of Demeter

The Law of Demeter indicates that you should only speak to objects that you know about directly. That is, do …

oop refactoring coupling law-of-demeter cohesion