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
Stability metric is computed based on the number of input and output dependencies:
I - number of input dependencies - the number of operations the selected operation depends on.
O - output of dependencies - the number of operations the selected operation depends on.
S - stability metric, where 0 maximum unstable (can be changed without affecting other components, and close to 1 is maximum stable, e.g. is harder to change since many other operations depend on it.
Once stability metrics are calculated, we can check if stable components depend on unstable components and give a note about it.
Background
Stability metric is computed based on the number of input and output dependencies:
I
- number of input dependencies - the number of operations the selected operation depends on.O
- output of dependencies - the number of operations the selected operation depends on.S
- stability metric, where0
maximum unstable (can be changed without affecting other components, and close to1
is maximum stable, e.g. is harder to change since many other operations depend on it.Once stability metrics are calculated, we can check if stable components depend on unstable components and give a note about it.
More on the topic: https://ericbackhage.net/clean-code/the-stable-dependencies-principle/
and https://medium.com/@endika_iglesias/how-to-calculate-the-stability-of-a-component-957bb66af3f7
Feature
Calculate and log stability metric for each operation.
The text was updated successfully, but these errors were encountered: