Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
9 Cards in this Set
- Front
- Back
lines-of-code metric |
counting the number of lines in the description |
|
Cyclomatic-complexity metric (McCabe 1976) |
-counting the number of independent paths through a method body - always counted from 1 - count : -while - do while - for - switch - try - && - || -not to count: - default case - final block - the CC of 10 or more is too complex needs to be restructured |
|
object-oriented metrics |
-2 types - measure method complexity - measure the complexity of the class structure |
|
depth-of-inderitance-tree (DIT) |
the maximum number of hops we can make sarting at the class in question and moving up the inheritance tree until reaching a class or interface from which we can go no further - only efficient measure for single inheritence |
|
coupling-between-objects (CBO) |
defined as the number of relationships the class has with other classes - the more relationships it has the more difficult to understand |
|
number-of-children(NOC) |
defined as a number of immediate children for that class - measures the number of the classes that will be affected by changes to a given parent class |
|
response-for-a-class (RFC) |
defined as the size of the response set for the class, which consists of all the methods and constructors of this class (including inherited methods) together with all the methods and constructors that are invoked within this class on objects of other classes
- measures the number of methods needed to understand a class |
|
lack-of-cohesion-in-methods (LCOM) |
a class should represent a single domain concept - defined as the number of pairs in methods that do not make reference to the same attributes minus the number of pairs of method that do |
|
weighted-methods-per-class |
- it measures the class' complexity of behaviour - defined as the sum of the cyclomatic complexities of each method of the class measured against the number of classes in each method |