{"title":"An Industrial Study on Developers' Prevalent Copy and Paste Activities","authors":"Sarveshwar Bharti, Hardeep Singh","doi":"10.1109/ICNGCIS.2017.16","DOIUrl":null,"url":null,"abstract":"Copy and then pasting code fragments is the most prevalent activity accomplished by the developers to reuse the available functionality. It has been empirically evidenced that this programming approach is one of the main reasons for code cloning in the software systems and thus needs to be managed. The literature mentions many tools that have been implemented to proactively manage clones while tracking this copy and paste activity inside IDEs. To have a better management tool, developer's behavior should be analyzed. To gather the knowledge about the programming practices, this paper presents results from an industrial survey conducted, involving professional developers, to understand the developer's copy and paste intentions. This work will shed a light on what programmers are doing while reusing code and why. This study reveals various reasons/intentions, extent, source etc. of the copy and paste activity done by the developer. This study reported the frequent use of this typical activity by the programmers so as not to reinvent the wheel and the negative impacts of this programming activity. And, finally, results suggest incorporating the functionality, inspired by the inference drawn from developers' behavior to the existing IDEs to manage the activities committed by the developer.","PeriodicalId":314733,"journal":{"name":"2017 International Conference on Next Generation Computing and Information Systems (ICNGCIS)","volume":"53 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 International Conference on Next Generation Computing and Information Systems (ICNGCIS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICNGCIS.2017.16","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2
Abstract
Copy and then pasting code fragments is the most prevalent activity accomplished by the developers to reuse the available functionality. It has been empirically evidenced that this programming approach is one of the main reasons for code cloning in the software systems and thus needs to be managed. The literature mentions many tools that have been implemented to proactively manage clones while tracking this copy and paste activity inside IDEs. To have a better management tool, developer's behavior should be analyzed. To gather the knowledge about the programming practices, this paper presents results from an industrial survey conducted, involving professional developers, to understand the developer's copy and paste intentions. This work will shed a light on what programmers are doing while reusing code and why. This study reveals various reasons/intentions, extent, source etc. of the copy and paste activity done by the developer. This study reported the frequent use of this typical activity by the programmers so as not to reinvent the wheel and the negative impacts of this programming activity. And, finally, results suggest incorporating the functionality, inspired by the inference drawn from developers' behavior to the existing IDEs to manage the activities committed by the developer.