arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1703.10860cs.SEcs.PL
收藏

克隆检测和消除的语用学

The pragmatics of clone detection and elimination

Simon Thompson, Huiqing Li, Andreas Schumacher

摘要:

类似代码或“代码克隆”的出现会使程序代码难以阅读、修改和维护。本文描述了使用重构和克隆检测工具进行克隆检测和消除的工业案例研究。我们讨论了如何通知的工具的设计研究,更重要的是,我们使用的研究来说明在实践中执行克隆消除时,必须采取的一系列复杂的决定。案例研究是与爱立信AB的工程师合作进行的,并使用了Erlang的重构工具Wrangler。然而,我们得出的结论在很大程度上是独立于语言的,并规定了在现实世界的项目中的克隆检测和消除的语用学,以及克隆检测决策支持工具的设计原则。

英文摘要:

The occurrence of similar code, or `code clones', can make program code difficult to read, modify and maintain. This paper describes industrial case studies of clone detection and elimination using a refactoring and clone detection tool. We discuss how the studies have informed the design of the tool; more importantly, we use the studies to illustrate the complex set of decisions that have to be taken when performing clone elimination in practice. The case studies were performed in collaboration with engineers from Ericsson AB, and used the refactoring tool Wrangler for Erlang. However, the conclusions we draw are largely language-independent, and set out the pragmatics of clone detection and elimination in real-world projects as well as design principles for clone detection decision-support tools.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑