User Tools

Site Tools


clean_code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
clean_code [2016/03/06 16:28] skipclean_code [2020/12/27 20:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +===== Clean code =====
 +
 +== Strong cohersion - loos copling. Alias Law of Demeter. ==
 +
 +Interfaces between objects should be defined clearly, and there should be as few as possible.
 +So that dependencies may be exchanged easily.
 +
 +
 +Alias  **Law of Demeter**
 +
 +A method of an object may only call methods of:
 +
 +  * The object itself.
 +  * An argument of the method.
 +  * Any object created within the method.
 +  * Any direct properties/fields of the object.
 +
 +https://de.wikipedia.org/wiki/Gesetz_von_Demeter