How to solve the violations of the Law of Demeter?
My understanding of consequences of the Law of Demeter seems to be different to DrJokepu’s – whenever I’ve applied it to object oriented code it’s resulted in tighter encapsulation and cohesion, rather than the addition of extra getters to contract paths in procedural code. Wikipedia has the rule as More formally, the Law of Demeter … Read more