How can we measure the stability of a component? One way is to count the number of dependencies that enter and leave that component. These counts will allow us to calculate the positional stability of the component. • Fan-in: Incoming dependencies. This metric identifies the number of classes outside this component that depend on classes within the component. • Fan-out: Outgoing dependencies. This metric identifies the number of classes inside this component that depend on classes outside the component. • I: Instability: I = Fan-out / (Fan-in + Fan-out). This metric has the range [0, 1]. I = 0
...more