Skip to main content

Correlation between Object-Oriented Metrics and Refactoring

  • Conference paper

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 83))

Abstract

Repeated code modification lowers code quality and impacts object-oriented system design. Object-oriented metrics have proven as indicators of problems in system design. They have been grouped in minimal sets, known as quality models, to assess object-oriented system quality. Improvement can be gained by establishing relationships between quality characteristics and metrics computed from object-oriented diagrams. Quality models include metrics that can produce better code in object-oriented systems. Code quality can also be gained with refactoring. Refactoring is used to reduce complexity and eliminate redundant code. It is important to identify when and where to use refactoring. There are many different approaches. This work presents early stage analysis and focuses on exploring whether object-oriented metrics can be used as indicators where in the code refactoring can be used. Through multiple itera tions of successive measurement and refactoring, relation between metric values and need of refactoring can be concluded.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Laird, L.M., Brennan, C.M.: Software Measurement and Estimation: A Practical Approach. Wiley-IEEE Computer Society Press (2006)

    Google Scholar 

  2. Kan, S.H.: Metrics and Models in Software Quality Engineering, 2nd edn. Addison-Wesley Professional, Reading (2002)

    MATH  Google Scholar 

  3. Fioravanti, F.: Skills for Managing Rapidly Changing IT Projects. IRM Press (2006)

    Google Scholar 

  4. Fowler, M., Beck, K., Brant, J., Opdyke, W., Roberts, D.: Refactoring: Improving the Design of Existing Code. Addison-Wesley Professional, Reading (1999)

    Google Scholar 

  5. Emam, K.: A Primer on Object-Oriented Measurement. In: Metrics, Seventh International Software Metrics Symposium (METRICS 2001), London, UK (2001)

    Google Scholar 

  6. El-Wakil, M., El-Batawisi, A., Boshra, M., Fahmy, A.: Object-Oriented Design Quality Models. In: A Survey and Comparison, International Conference on Informatics and Systems (2004)

    Google Scholar 

  7. Brito e Abreu, F., Melo, W.L.: Evaluating the Impact of Object-Oriented Design on Software Quality. In: 3rd International Software Metrics Symposium (METRICS 1996). IEEE, Berlin (1996)

    Google Scholar 

  8. Jamali, S.M.: Object Oriented Metrics. Survey paper, Sharif University of Technology, Tehran Iran (2006)

    Google Scholar 

  9. Rosenberg, L.H.: Applying and Interpreting Object Oriented Metrics. In: Proc. Software Technology Conf., NASA (1998)

    Google Scholar 

  10. Basili, V.R., Briand, L., Melo, W.L.: A Validation of Object-Oriented Design Metrics as Quality Indicators. IEEE Transactions on Software Engineering 22(10) (1996)

    Google Scholar 

  11. Li, W., Henry, S.: Object-Oriented Metrics Which Predict Maintainability. Technical report (1993)

    Google Scholar 

  12. Kaner, C., Bond, W.P.: Software Engineering Metrics: What Do They Measure and How Do We Know? In: 10th International Software Metrics Symposium, Chicago (2004)

    Google Scholar 

  13. Demeyer, S., Ducasse, S.: Metrics, Do They Really Help? In: Proceedings of Languages et Modèles à Objets (LMO 1999). HERMES Science Publications, Paris (1999)

    Google Scholar 

  14. Chidamber, S.R., Darcy, D.P., Kemerer, C.F.: Managerial Use of Metrics for Object-Oriented Software: An Exploratory Analysis. IEEE Transactions on Software Engineering (2005)

    Google Scholar 

  15. Zhao, L., Hayes, J.H.: Predicting Classes in Need of Refactoring: An Application of Static Metrics. In: Proceedings of the Workshop on Predictive Models of Software Engineering (PROMISE), associated with ICSM (2006)

    Google Scholar 

  16. Crespo, Y., López, C., Manso, E., Marticorena, R.: Language Independent Metric Support towards Refactoring Inference. In: 9th Workshop on Quantitative Approaches in Object-Oriented Software Engineering, QAOOSE, Glasgow, UK (2005)

    Google Scholar 

  17. Simon, F., Steinbrückner, F., Lewerentz, C.: Metrics based refactoring. In: Fifth European Conference on Software Maintenance and Reengineering, 2001 (2001)

    Google Scholar 

  18. Moser, R., Sillitti, A., Abrahamsson, P., Succi, G.: Does refactoring improve reusability? In: Morisio, M. (ed.) ICSR 2006. LNCS, vol. 4039, pp. 287–297. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  19. Iyer, S.S., Tech, B.: An Analytical Study of Metrics and Refactoring. Master’s Thesis, The University of Texas at Austin (2009)

    Google Scholar 

  20. Understand, http://www.scitools.com/index.php

  21. NDepend, http://www.ndepend.com

  22. Code Rush Refactor!, http://www.devexpress.com/coderush

  23. Resharer, http://www.jetbrains.com/resharper

  24. Refactoring support, http://patterninsight.com/solutions/refactoring.php

  25. Roberts, D., Brant, J., Johnson, R., Opdyke, W.: An Automated Refactoring Tool. In: Proceedings of ICAST 1995: International Conference on Advanced Science and Technology, Chicago, Illinois (1995)

    Google Scholar 

  26. Melton, H., Tempero, E.: Identifying Refactoring Opportunities by Identifying Dependency Cycles. In: Proceedings of the Twenty-Ninth Australasian Computer Science Conference, Hobart, Australia (2006)

    Google Scholar 

  27. Murphy-Hill, E., Andrew, P., Black, A.P.: Breaking the Barriers to Successful Refactoring. In: Proceedings of the 30th International Conference on Software Engineering (ICSE 2008), Leipzig, Germany (2008)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Boshnakoska, D., Mišev, A. (2011). Correlation between Object-Oriented Metrics and Refactoring. In: Gusev, M., Mitrevski, P. (eds) ICT Innovations 2010. ICT Innovations 2010. Communications in Computer and Information Science, vol 83. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-19325-5_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-19325-5_23

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-19324-8

  • Online ISBN: 978-3-642-19325-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics