Software metric

From HandWiki
Revision as of 23:02, 6 February 2024 by AIposter (talk | contribs) (url)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Measure of the degree to which software possesses some property

In software engineering and development, a software metric is a standard of measure of a degree to which a software system or process possesses some property.[1][2] Even if a metric is not a measurement (metrics are functions, while measurements are the numbers obtained by the application of metrics), often the two terms are used as synonyms. Since quantitative measurements are essential in all sciences, there is a continuous effort by computer science practitioners and theoreticians to bring similar approaches to software development. The goal is obtaining objective, reproducible and quantifiable measurements, which may have numerous valuable applications in schedule and budget planning, cost estimation, quality assurance, testing, software debugging, software performance optimization, and optimal personnel task assignments.

Common software measurements

Common software measurements include:

Limitations

As software development is a complex process, with high variance on both methodologies and objectives, it is difficult to define or measure software qualities and quantities and to determine a valid and concurrent measurement metric, especially when making such a prediction prior to the detail design. Another source of difficulty and debate is in determining which metrics matter, and what they mean.[8][9] The practical utility of software measurements has therefore been limited to the following domains:

A specific measurement may target one or more of the above aspects, or the balance between them, for example as an indicator of team motivation or project performance.

Additionally metrics vary between static and dynamic program code, as well as for object oriented software (systems).[10][11]

Acceptance and public opinion

Some software development practitioners point out that simplistic measurements can cause more harm than good.[12] Others have noted that metrics have become an integral part of the software development process.[8] Impact of measurement on programmer psychology have raised concerns for harmful effects to performance due to stress, performance anxiety, and attempts to cheat the metrics, while others find it to have positive impact on developers value towards their own work, and prevent them being undervalued. Some argue that the definition of many measurement methodologies are imprecise, and consequently it is often unclear how tools for computing them arrive at a particular result,[13] while others argue that imperfect quantification is better than none (“You can’t control what you can't measure.”).[14] Evidence shows that software metrics are being widely used by government agencies, the US military, NASA,[15] IT consultants, academic institutions,[16] and commercial and academic development estimation software.

Further reading

  • J. Smith, Introduction to Linear Programming, Acme Press, 2010. An introductory text.
  • Reijo M.Savola, Quality of security metrics and measurements, Computers & Security, Volume 37, September 2013, Pages 78-90.[17]

See also

References

  1. Fenton, Norman E. (2014). Software metrics : a rigorous and practical approach. James Bieman (3rd ed.). Boca Raton, FL. ISBN 978-1-4398-3823-5. OCLC 834978252. https://www.worldcat.org/oclc/834978252. 
  2. Timóteo, Aline Lopes; Álvaro, Re; Almeida, Eduardo Santana De; De, Silvio Romero; Meira, Lemos. Software Metrics: A Survey. 
  3. "Descriptive Information (DI) Metric Thresholds". Land Software Engineering Centre. http://www.lsec.dnd.ca/qsd_current_version/eng_support/di/metrics.htm. 
  4. Gill, G. K.; Kemerer, C. F. (December 1991). "Cyclomatic complexity density and software maintenance productivity". IEEE Transactions on Software Engineering 17 (12): 1284–1288. doi:10.1109/32.106988. ISSN 1939-3520. https://ieeexplore.ieee.org/document/106988. 
  5. "maintainability - Does it make sense to compute cyclomatic complexity/lines of code ratio?". https://softwareengineering.stackexchange.com/questions/56056/does-it-make-sense-to-compute-cyclomatic-complexity-lines-of-code-ratio. 
  6. "OMG Adopts Automated Function Point Specification". Omg.org. 2013-01-17. http://www.omg.org/news/releases/pr2013/01-17-13.htm. 
  7. Amit, Idan; Feitelson, Dror G. (2020-07-21). "The Corrective Commit Probability Code Quality Metric". arXiv:2007.10912 [cs.SE].
  8. 8.0 8.1 Binstock, Andrew (March 2010). "Integration Watch: Using metrics effectively". SD Times. BZ Media. http://www.sdtimes.com/link/34157. 
  9. Kolawa, Adam (7 August 2008). "When, Why, and How: Code Analysis". The Code Project. https://www.codeproject.com/Articles/28440/When-Why-and-How-Code-Analysis. 
  10. Gosain, Anjana; Sharma, Ganga (2015). "Dynamic Software Metrics for Object Oriented Software: A Review". in Mandal, J. K.; Satapathy, Suresh Chandra; Kumar Sanyal, Manas et al. (in en). Information Systems Design and Intelligent Applications. Advances in Intelligent Systems and Computing. 340. New Delhi: Springer India. pp. 579–589. doi:10.1007/978-81-322-2247-7_59. ISBN 978-81-322-2247-7. https://link.springer.com/chapter/10.1007/978-81-322-2247-7_59. 
  11. S, Parvinder Singh; Singh, Gurdev. Dynamic Metrics for Polymorphism in Object Oriented Systems. 
  12. Kaner, Dr. Cem (2004), Software Engineer Metrics: What do they measure and how do we know? 
  13. Lincke, Rüdiger; Lundberg, Jonas; Löwe, Welf (2008), "Comparing software metrics tools", International Symposium on Software Testing and Analysis 2008: pp. 131–142, http://www.arisa.se/files/LLL-08.pdf 
  14. DeMarco, Tom (1982). Controlling Software Projects: Management, Measurement and Estimation. Yourdon Press. ISBN 0-13-171711-1. 
  15. "NASA Metrics Planning and Reporting Working Group (MPARWG)". Earthdata.nasa.gov. http://earthdata.nasa.gov/our-community/esdswg/metrics-planning-and-reporting-mparwg. 
  16. "USC Center for Systems and Software Engineering". Sunset.usc.edu. http://sunset.usc.edu/csse/research/COCOMOII/cocomo_main.html. 
  17. Savola, Reijo M. (2013-09-01). "Quality of security metrics and measurements" (in en). Computers & Security 37: 78–90. doi:10.1016/j.cose.2013.05.002. ISSN 0167-4048. https://www.sciencedirect.com/science/article/pii/S0167404813000850. 

External links