af Igor Polishchuk 8 år siden
359
Mere som dette
Sum of complexity of all class methods
http://staff.unak.is/andy/StaticAnalysis0809/metrics/wmc.html
lower RFC - lower bugs
inokation complexity on message
http://staff.unak.is/andy/StaticAnalysis0809/metrics/rfc.html
Wrappers time & space overhead
Potentialy lower Response for Class (RFC) Metric
Lower dependencies between classes
Safer code change
Why its needed (ru): https://toster.ru/q/44822
Wiki (en): https://en.wikipedia.org/wiki/Law_of_Demeter
Only talk to your immediate friends
Each unit should only talk to its friends; don't talk to stangers
Every unit should have limited knowledge about other units: only "closely" related to the current unit