You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Law of Demeter (LoD) - Principle of Least Knowledge or Don't Talk to Strangers
67
+
- Low Coupling (LC): The goal of LoD is to reduce coupling by reducing the knowledge of a class about other classes.
68
+
- Tell, Don't Ask/Information Expert (TdA/IE): LoD is more specific than TdA/IE because TdA/IE can be applied in a wider context (e.g. for responsibility assignment). Applying TdA leads to solutions which are good according to LoD. Note that the reverse is not true: Accoring to LoD you may get and set values from an object passed as a parameter to a method.
69
+
- A method of an object should invoke only the methods of the following kinds of objects:
0 commit comments