Law of Demeter with data model objects
There is a book called Clean Code by Robert Martin that covers this. In Chapter 6 (Objects and Data Structures) he talks about fundamental differences between objects and data structures. Objects benefit from encapsulation, data structures don’t. There is a section about the Law of Demeter: There is a well-known heuristic called the Law of … Read more