Skip to main content

The Effect of Pair Programming on Code Maintainability

  • Conference paper
  • First Online:
Collaboration Technologies and Social Computing (CollabTech 2022)

Abstract

Software maintainability is an important key aspect in software development life cycle. It has a huge impact on the time, effort, and cost. This research investigated the effect of applying pair programming on software maintainability vs individual programming approach. We reviewed many related studies which talked about the two approaches, but few of them focused on maintainability. Therefore, we conducted an experiment in educational environment. The participants were novice students in their second year, who finished object oriented programming course. The participating students were divided into two groups, some worked as individual and the others worked as pairs. In order to get good results, we made the experiment among the students in a competitive way. Enabling those who produced the best code to win a cash prize. Finally, code obtained from both approaches was analyzed by software quality assurance expert, who has finished a master degree in software engineering. The results taken from pair groups showed a statistically significant difference in building software with 50% less errors, 30% less code, and 25% better code. Furthermore, there is a marginal reducing in programming time particularly in small size software compared to individual programming.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.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

Institutional subscriptions

References

  1. Misra, S.: Pair programming: an empirical investigation in an agile software development environment. In: Przybyłek, A., Miler, J., Poth, A., Riel, A. (eds.) LASD 2021. LNBIP, vol. 408, pp. 195–199. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-67084-9_13

    Chapter  Google Scholar 

  2. Sunitha, K.S., Nirmala, K.: Correlation study on defect density with domain expert pair speed for effective pair programming. Indian J. Sci. Technol. 8(34), 1–7 (2015)

    Article  Google Scholar 

  3. Rajagopal, S., Hareesha, K.S., Kundapur, P.P.: Optimising pair programming in a scholastic framework: a design pattern perspective. J. Comput. Sci. 13(6), 199–210 (2017)

    Article  Google Scholar 

  4. Nawahdah, M., Taji, D., Inoue, T.: Collaboration leads to success: a study of the effects of using pair-programming teaching technique on student performance in a Middle Eastern society. In: 2015 IEEE International Conference on Teaching, Assessment, and Learning for Engineering (TALE). IEEE (2015)

    Google Scholar 

  5. Anjum, S., Batul, H., Sirshar, M.: A comparative study of ensuring quality in pair programming. IJCCSE 2(1), 160–171 (2015)

    Google Scholar 

  6. Alazzam, I., Akour, M.: Improving software testing course experience with pair testing pattern. Int. J. Teach. Case Stud. 6(3), 244–250 (2015)

    Article  Google Scholar 

  7. Celepkolu, M., Boyer, K.E. The importance of producing shared code through pair programming. In: Proceedings of the 49th ACM Technical Symposium on Computer Science Education (2018)

    Google Scholar 

  8. Ersoy, I.B., Mahdy, A.M.: Agile knowledge sharing. Int. J. Softw. Eng. (IJSE) 6(1), 1–15 (2015)

    Google Scholar 

  9. Choudhari, J., Suman, U.: An empirical evaluation of iterative maintenance life cycle using XP. ACM SIGSOFT Softw. Eng. Notes 40(2), 1–14 (2015)

    Article  Google Scholar 

  10. Sadath, L., Karim, K., Gill, S.: Extreme programming implementation in academia for software engineering sustainability. In: 2018 Advances in Science and Engineering Technology International Conferences (ASET). IEEE (2018)

    Google Scholar 

  11. Tsompanoudi, D., et al.: An empirical study on factors related to distributed pair programming, 65–81 (2019)

    Google Scholar 

  12. Bogner, J., Wagner, S., Zimmermann, A.: Automatically measuring the maintainability of service-and microservice-based systems: a literature review. In: Proceedings of the 27th International Workshop on Software Measurement and 12th International Conference on Software Process and Product Measurement (2017)

    Google Scholar 

  13. Chen, K., Rea, A.: Do pair programming approaches transcend coding? Measuring agile attitudes in diverse information systems courses. J. Inf. Sys. Educ. 29(2), 53–64 (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mamoun Nawahdah .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Nawahdah, M., Jaradat, M. (2022). The Effect of Pair Programming on Code Maintainability. In: Wong, LH., Hayashi, Y., Collazos, C.A., Alvarez, C., Zurita, G., Baloian, N. (eds) Collaboration Technologies and Social Computing. CollabTech 2022. Lecture Notes in Computer Science, vol 13632. Springer, Cham. https://doi.org/10.1007/978-3-031-20218-6_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-20218-6_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-20217-9

  • Online ISBN: 978-3-031-20218-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics