Measuring Component Volatility and Ordering Dependencies by Change Frequency
A chapter on software design turns the idea of a volatile module into a measurable quantity: a non-negative score reflecting how often a component is expected to change. It describes four estimation methods of increasing sophistication, from simply counting commits over a period to predictive machine-learning models, and suggests starting with historical commit counts drawn from the repository. Volatility values are normalized by the largest observed value so they fall between zero and one, with the user interface layer typically scoring highest. The chapter then defines a volatility-compatible ordering, where each dependency points from a component to one at least as volatile, and proves such an ordering exists in an acyclic graph exactly when every dependency satisfies this condition. It also introduces volatility distance, the absolute difference between two components' volatilities, whose average across dependencies gives an alignment score where lower indicates better design.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in