Skip to main content

An Exploratory Study on How Software Reuse is Discussed in Stack Overflow

  • Conference paper
  • First Online:
Reuse in Emerging Software Engineering Practices (ICSR 2020)

Abstract

Software reuse is an important and crucial quality attribute in modern software engineering, where almost all software projects, open source or commercial, no matter small or ultra-large, source code reuse in one way or another. Although software reuse has experienced an increased adoption throughout the years with the exponentially growing number of available third-party libraries, frameworks and APIs, little knowledge exists to investigate what aspects of code reuse developers discuss. In this study, we look into bridging this gap by examining Stack Overflow to understand the challenges developers encounter when trying to reuse code. Using the Stack Overflow tags “code-reuse” and “reusability”, we extracted and analyzed 1,409 posts, composed of questions and answers. Our findings indicate that despite being popular, reuse questions take relatively longer than typical other questions to receive an accepted answer. From these posts, we identified 9 categories that group the different ways developers discuss software reuse. We found Java and ASP.NET MVC to be the most discussed programming language and framework, respectively. Based on the programming languages and frameworks mentioned in the posts, we noted that Web software development is the most frequently targeted environment. This study can be utilized to further analyze aspects about software reuse and develop guidelines to be practiced in industry and taught when forming new developers.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://www.stackoverflow.com.

  2. 2.

    https://smilevo.github.io/self-affirmed-refactoring/.

  3. 3.

    https://data.stackexchange.com/stackoverflow/queries.

  4. 4.

    https://www.tiobe.com/tiobe-index/.

  5. 5.

    http://pypl.github.io/PYPL.html.

References

  1. Ahmaro, I., Abualkishik, A., Yusof, M.: Taxonomy, definition, approaches, benefits, reusability levels, factors and adaption of software reusability: a review of the research literature. J. Appl. Sci. 14, 2396 (2014)

    Article  Google Scholar 

  2. Alshangiti, M., Sapkota, H., Murukannaiah, P., Liu, X., Yu, Q.: Why is developing machine learning applications challenging? A study on stack overflow posts. In: International Symposium on Empirical Software Engineering and Measurement, pp. 1–11, September 2019

    Google Scholar 

  3. Asaduzzaman, M., Mashiyat, A.S., Roy, C.K., Schneider, K.A.: Answering questions about unanswered questions of stack overflow. In: 10th Working Conference on Mining Software Repositories, pp. 97–100 (2013)

    Google Scholar 

  4. Barua, A., Thomas, S.W., Hassan, A.E.: What are developers talking about? An analysis of topics and trends in stack overflow. Empirical Softw. Eng. 19(3), 619–654 (2014)

    Article  Google Scholar 

  5. Younoussi, S., Roudies, O.: All about software reusability: a systematic literature review. J. Theor. Appl. Inf. Technol. 76, 64–75 (2015)

    Google Scholar 

Download references

Acknowledgements

This material is based on work supported by the National Science Foundation under Grant No. 1757680.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Eman Abdullah AlOmar .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

AlOmar, E.A., Barinas, D., Liu, J., Mkaouer, M.W., Ouni, A., Newman, C. (2020). An Exploratory Study on How Software Reuse is Discussed in Stack Overflow. In: Ben Sassi, S., Ducasse, S., Mili, H. (eds) Reuse in Emerging Software Engineering Practices. ICSR 2020. Lecture Notes in Computer Science(), vol 12541. Springer, Cham. https://doi.org/10.1007/978-3-030-64694-3_18

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-64694-3_18

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-64693-6

  • Online ISBN: 978-3-030-64694-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics