Cloning practices: Why developers clone and what can be changed

Gang Zhang, Xin Peng, Zhenchang Xing, Wenyun Zhao
{"title":"Cloning practices: Why developers clone and what can be changed","authors":"Gang Zhang, Xin Peng, Zhenchang Xing, Wenyun Zhao","doi":"10.1109/ICSM.2012.6405284","DOIUrl":null,"url":null,"abstract":"Code clones are similar code segments. Researchers have proposed many techniques to detect, understand and eliminate code clones. However, due to lack of deeper understanding of reasons of cloning practices, especially from personal and organizational perspectives, little effective support can be provided to alleviate maintenance problems caused by code clones. In this paper, we report an industrial study on investigating reasons of cloning practices in large-scale software development from technical, personal, and organizational perspectives. Our study involves code analysis, questionnaire survey, and interviews with developers, and gathers solid empirical data about how developers clone and why during different phases of clones' lifecycle in industrial development. The results of our study suggest that cloning is not simply a technical issue; it must be interpreted and understood in larger context in which code clones occur and evolve. Within these contexts, there are several adjustable factors and two critical points that affect the introduction, existence, and removal of clones. These adjustable factors and critical points reveal opportunities to improve cloning practices in industrial development from technical, personal, and organizational perspectives.","PeriodicalId":348790,"journal":{"name":"2012 28th IEEE International Conference on Software Maintenance (ICSM)","volume":"54 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-09-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"37","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 28th IEEE International Conference on Software Maintenance (ICSM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSM.2012.6405284","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 37

Abstract

Code clones are similar code segments. Researchers have proposed many techniques to detect, understand and eliminate code clones. However, due to lack of deeper understanding of reasons of cloning practices, especially from personal and organizational perspectives, little effective support can be provided to alleviate maintenance problems caused by code clones. In this paper, we report an industrial study on investigating reasons of cloning practices in large-scale software development from technical, personal, and organizational perspectives. Our study involves code analysis, questionnaire survey, and interviews with developers, and gathers solid empirical data about how developers clone and why during different phases of clones' lifecycle in industrial development. The results of our study suggest that cloning is not simply a technical issue; it must be interpreted and understood in larger context in which code clones occur and evolve. Within these contexts, there are several adjustable factors and two critical points that affect the introduction, existence, and removal of clones. These adjustable factors and critical points reveal opportunities to improve cloning practices in industrial development from technical, personal, and organizational perspectives.
克隆实践:开发人员为什么要克隆,哪些可以更改
代码克隆是类似的代码段。研究人员提出了许多技术来检测、理解和消除代码克隆。然而,由于缺乏对克隆实践的原因的更深入的理解,特别是从个人和组织的角度来看,很少能提供有效的支持来减轻代码克隆引起的维护问题。在本文中,我们报告了一项从技术、个人和组织角度调查大规模软件开发中克隆实践原因的工业研究。我们的研究包括代码分析、问卷调查和对开发者的采访,并收集了关于开发者如何克隆以及为什么在工业开发中克隆生命周期的不同阶段进行克隆的可靠经验数据。我们的研究结果表明,克隆不仅仅是一个技术问题;它必须在代码克隆发生和进化的更大的上下文中进行解释和理解。在这些上下文中,有几个可调整的因素和两个影响克隆的引入、存在和删除的临界点。这些可调整的因素和临界点揭示了从技术、个人和组织的角度改进工业发展中的克隆实践的机会。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书