首页> 外文会议>Software Clones (IWSC), 2012 6th International Workshop on >A method for proactive moderation of code clones in IDEs
【24h】

A method for proactive moderation of code clones in IDEs

机译:在IDE中主动审核代码克隆的方法

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

摘要

Duplicating code and modifying it is a useful convenience when editing within an IDE. This sequence of operations, termed copy-paste-modify, has the downside of proliferating “nearly identical” code segments or code clones and could lead to rapid degeneration of code. Although techniques for proactive identification of clones and differences between them have been studied, no clear method to control clone formation, based on “acceptability criteria,” is known. In this paper, we present a technique to moderate the genesis of clones through copy-paste-modify operations. Our approach is guided by associating constraints formulated from predefined guidelines, and checking for their satisfaction at the time of copy and upon modification. By encoding “acceptability criteria” as constraints, our approach provides the means necessary for controlled creation of clones.
机译:在IDE中进行编辑时,复制代码并对其进行修改非常有用。这种称为复制-粘贴-修改的操作序列具有扩散“几乎相同”的代码段或代码克隆的弊端,并可能导致代码快速退化。尽管已经研究了主动识别克隆及其之间差异的技术,但尚无基于“可接受性标准”的明确控制克隆形成的方法。在本文中,我们提出了一种通过复制粘贴修改操作来缓和克隆发生的技术。我们的方法是通过关联根据预定义准则制定的约束,并在复制时和修改时检查其是否满意来指导的。通过将“可接受性标准”编码为约束,我们的方法提供了受控创建克隆的必要手段。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号