论文标题
堆栈溢出上的代码重复
Code Duplication on Stack Overflow
论文作者
论文摘要
尽管对于许多软件开发人员的日常工作以及关于代码重复对软件可维护性的影响的现有知识,堆栈溢出的重要性(因此)不可忽视,但尚未受到应有的关注。在本文中,我们激发了为什么需要在So中进行有关代码重复的研究,以及有关代码重用的现有研究与这个新的研究方向有何不同。我们提出了一般代码克隆与代码克隆之间的相似性和差异,并指出要打开需要解决的问题,以便能够在这个重要平台上做出有关如何正确处理克隆的数据信息的决定。我们提出了第一次初步研究的结果,表明克隆因此是常见和多样的。我们进一步指出了具体的挑战,包括激励用户在平台上使用批量编辑克隆成功的答案和困难的激励措施,并以可能的未来工作方式结束。
Despite the unarguable importance of Stack Overflow (SO) for the daily work of many software developers and despite existing knowledge about the impact of code duplication on software maintainability, the prevalence and implications of code clones on SO have not yet received the attention they deserve. In this paper, we motivate why studies on code duplication within SO are needed and how existing studies on code reuse differ from this new research direction. We present similarities and differences between code clones in general and code clones on SO and point to open questions that need to be addressed to be able to make data-informed decisions about how to properly handle clones on this important platform. We present results from a first preliminary investigation, indicating that clones on SO are common and diverse. We further point to specific challenges, including incentives for users to clone successful answers and difficulties with bulk edits on the platform, and conclude with possible directions for future work.