Tuesday, February 24, 2009

Software metric

is any type of measurement relating to a software system, process or related documentation;
it allows software and s. process to be quantified;
used for predictions or identifying anomalous components (to later analyse them)

metrics

we assume that software property can be measured and that there's a relationship between what we measure and what we want to know. we can only measure internal attributes (number of procedure parameters, length of user manual, no of error messages) but we need more often external attributes (maintainability, reliability, portability and usability)...

this measurement process is a part of quality control activity

once we have some measurements we can compare between projects

we choose the measurements to be made, we choose the components to measure

we sometimes want to find anomalous component to analyze them further

Data
  • should be collected immediately, most preferably automatically
  • dont collect unnecessary data
  • tell people why you collect the data
  • dont rely on memory, collect the data while it is generated not after project has finished
..all the time our goal is to predict the product quality

PRODUCT METRICS
  1. dynamic - in execution (measure efficiency & reliability; the metrics are close to those quality attributes)
  2. static - measure system representation (for measuring complexity, understandability, maintainability; metrics have to be indirect)
e.g. fan-in/fan-out (number of functions called from the function, or opposite), lenght of code, length of identifiers, depth of conditional nesting, average word length in document (whaaa?!), depth of inheritance tree (in object programming), number of overriding operations,..

//this is so stupid!

MEASURENMENT ANALYSIS
ok, we have the data but what does it mean
analysing collected data is very diffiicult (sommerville example: by increasing bug fixing we have more bugs - why? - not possible? - because more clients call and report them, because they see we fix them;p)
yes, reducing number of faults leads to increased help desk calls...

KEY POINTS
software quality management is about ensuring software meets required sandards
...
there's NO standarized and universally applicable software metrics