期刊文献+

程序设计语言中代码克隆的研究 被引量:1

Research on Code Clone in Program m ing Languages
下载PDF
导出
摘要 代码克隆,即计算机程序源代码中的冗余,可以导致软件系统中的各种问题,其中包括代码量与维护成本的增加。文中通过研究程序设计语言Java、Python、JavaScript、Erlang与Haskell,寻找程序语言特性与代码克隆间的关系。文中辨识出一组这些语言的特性,基于选定的一组开放源代码项目构建了一个用于实验的代码库。文中采用Clone Digger做为代码克隆检测工具并对其进行扩展,使其支持JavaScript,Erlang与Haskell。文章最后在构建的代码库上运行CloneDigger,得到了一组结果并对其进行了分析。 Code clone, that is the duplication in program source code, may lead to several problems in software system, including increasing of code size and maintenance costs. The paper studies some languages such as Java, Python, JavaScript, Erlang and HaskeU, and tries to find out the relation between language features and code clones. Firstly, several features of them are recognized. Secondly, a source code library is built from a selected set of open source projects. Thirdly, Clone Digger is used as clone detection tool and it is extended to support JavaScript, Erlang and Haskell. Finally, Clone Digger is run on our library. The result is analyzed for comparison between languages.
出处 《计算机与网络》 2013年第6期65-67,共3页 Computer & Network
关键词 代码克隆 克隆检测 程序设计语言 软件工程 开放源代码 code clone clone detecting programming language software engineering open source
  • 相关文献

参考文献6

  • 1Bulychev Peter,Minea Marius.Duplicate code detection using andunification:In Proceedings of Spring Young Researchers Colloquium on Software Engineering[C].2008:4-12.
  • 2M Kim, L Bergman, T. Lau, et al. An ethnographic study of copy and paste programming practices in OOPL. In Empirical Software Engineering,2004:ISESE' 04. Proceedings. International Symposium on[C].2004:83-92.
  • 3G V Rossum ,F L Drake. Python language reference[M]. Network Theory Ltd,2003.
  • 4C Kapser, M W Godfrey. " cloning considered harmful" consideredharmful: In Reverse Engineering, 2006.WCRE' 06 13th Working Conference[C].2006:19-28.
  • 5D C Rajapakse ,S Jarzabek. Using server pages to unify clones in webapplications: A trade-off analysis:In Proceedings of the 29th internationalconference on Software Engineering[C]. 2007:116-126.
  • 6M Kim, V Sazawal, D. Notkin, et al. An empirical study of code clone genealogies:In Proceedings of the 10th European Software Engineering Conference[C].2005:187-196.

同被引文献4

引证文献1

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部