首页> 外文学位 >Managing the copy-and-paste programming practice.
【24h】

Managing the copy-and-paste programming practice.

机译:管理复制和粘贴编程实践。

获取原文
获取原文并翻译 | 示例

摘要

Programmers often copy and paste source code in order to reuse an existing solution in the completion of a current task. Copying and pasting results in code clones (similar code fragments) throughout a code base, which need to be properly maintained over time. Forgetting the cloning information and correspondence relationships within a piece of code can be problematic for the software maintainer. Furthermore, inconsistent editing to clones can introduce undetected bugs, decreasing the quality of the software.This dissertation presents a suite of software tools, Eclipse plug-ins named CnP, that aid the programmer during copy, paste, and modify programming. The purpose is to provide tool support throughout a clone's entire lifecycle, from its creation to its removal from the system. More than just traditional clone detection and removal, these clone tracking tools have a particular focus on clone editing. One CnP plug-in helps with consistent identifier renaming within clones (CReN), another one renames substrings consistently within clones (LexId), and a third plug-in in the CnP suite visualizes user edits within a clone for better clone comparison (CSeR). A user study was conducted on CnP's basic visualization, CReN, and LexId features with analysis in terms of task completion time, solution correctness, and method of completion.
机译:程序员经常复制和粘贴源代码,以便在完成当前任务时重用现有解决方案。复制和粘贴会导致整个代码库中的代码克隆(相似的代码片段),需要长期对其进行适当维护。忘记一段代码内的克隆信息和对应关系对于软件维护人员可能会出现问题。此外,对克隆的不一致编辑会引入无法检测到的错误,从而降低软件质量。本文提出了一套名为CnP的Eclipse插件软件工具,可在复制,粘贴和修改编程过程中为程序员提供帮助。目的是在克隆的整个生命周期(从其创建到从系统删除)中提供工具支持。这些克隆跟踪工具不仅仅是传统的克隆检测和删除,还特别关注克隆编辑。一个CnP插件可帮助在克隆(CReN)中进行一致的标识符重命名,另一个CnP插件可在克隆(LexId)中一致地重命名子字符串,而CnP套件中的第三个插件可将克隆中的用户编辑可视化,以更好地进行克隆比较(CSeR) 。对CnP的基本可视化,CReN和LexId功能进行了用户研究,并根据任务完成时间,解决方案正确性和完成方法进行了分析。

著录项

  • 作者

    Deshane, Patricia.;

  • 作者单位

    Clarkson University.;

  • 授予单位 Clarkson University.;
  • 学科 Applied Mathematics.Computer Science.
  • 学位 Ph.D.
  • 年度 2010
  • 页码 136 p.
  • 总页数 136
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号