In Principles of Software Engineering Management , Tom Gilb says that everything can be made measurable in a way that is better than not measuring at all. One of the principles for good planning is to define specific and measurable goals for activities. But it's not enough for goals to be measurable: metrics must be defined, and measurements collected and used. This section provides a brief discussion of metric-related issues and gives examples of metrics related to configuration management. Table 25-1 defines several terms related to measurement and metrics. To give an example, the metric for the size of a book is "the number of pages"; the measuring method is "look at the page number on the last numbered page"; the plan is "the reader when she starts on the book"; and the measurement for this metric for Alice in Wonderland in a certain edition is "54." Table 25-1. Metric and Measurement Terms
Metrics in GeneralMetrics are the definitions of what you want to measure, both directly and by calculation. You can collect or produce a number of data types, as shown in Table 25-2. Data may be objective, with no personal evaluation involved. These are often enumeration, and tools may be used to collect the measurements. Conversely, data may be subjective , involving an element of evaluation. This entails some uncertainty, but the data is often cheap to collect, and its usefulness should not be underestimated. Metrics may well be simple. Nothing is wrong with a metric for which the measurement is a verbal answer of yes or no. This could be, for example, whether a convention is used or not. Table 25-2. Data Types
It's important to agree on certain aspects when defining metrics, as shown in Table 25-3. Table 25-3. Aspects of Metrics
When defining metrics it's important to understand the various scales that may be used and what you can do with metrics in various scales. The most-used scales are listed in Table 25-4. Whatever you do, don't mix apples with oranges, unless you want to make fruit salad. Table 25-4. Scale Definitions
Measuring MethodsThe measuring method is the description of how you are going to measure. Measuring is assigning a value to a metric. Table 25-5 shows a number of qualities to consider when defining measuring methods, which should be as simple as possible. Table 25-5. Requirements for Metrics
Measurement PlanA measurement plan defines metrics and measuring methods. It describes who is going to measure, and when, and how the measurements will be analyzed and used. The measurement plan is individual from company to company. When planning, ensure that the defined metrics answer questions to which you want answers. Don't measure for the sake of measuring. Also, collecting the measurements should be as simple as possible. Ideally, all measurements should be producible from already registered information, so that collection doesn't entail extra work. Maybe available data just needs to be used in a new way. Not only should measurements be used; the usage should be visible for those who provide them. So only measure what will be used immediately and will provide quick and precise feedback. The plan must also create confidence. Measurements from process usage must never be used to punish or reward individuals. Remember: unwise measuring may induce a lot of strange behavior in people. ExamplesA number of techniques describe the process of selecting and defining metrics for configuration management, such as GoalQuestionMetrics (GQM) or Goal Driven Software Measurement. Following is a list with suggestions for metrics that may be used to analyze how configuration management is performed. The list focuses on configuration management processes, not other processes and not the product. It is by no means exhaustive but may serve as inspiration. Metrics may be
Identical metrics may be defined for
Metrics may be defined including cost, such as the cost of the activities. Measurements may show new aspects of things you thought you knew everything about. |