Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate and log stability metric for each operation #337

Open
yruslan opened this issue Jan 11, 2024 · 0 comments
Open

Calculate and log stability metric for each operation #337

yruslan opened this issue Jan 11, 2024 · 0 comments
Labels
enhancement New feature or request Pramen-Scala

Comments

@yruslan
Copy link
Collaborator

yruslan commented Jan 11, 2024

Background

Stability metric is computed based on the number of input and output dependencies:
Screenshot 2024-01-11 at 10 32 42

  • 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.

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.

@yruslan yruslan added enhancement New feature or request Pramen-Scala labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Pramen-Scala
Projects
None yet
Development

No branches or pull requests

1 participant