Law of Demeter (LoD) – principle of least knowledge

We all know that clean code principles are very helpful in developing software, which is going to generate fewer bugs and be easier in maintaining. Today I would like to focus on one them. What is the Law of Demeter? In shortcut “speak only with friends”. It’s essential idea is that methods of certain class should only call operations:– of same object– of any of … Continue reading Law of Demeter (LoD) – principle of least knowledge