首页    期刊浏览 2025年07月16日 星期三
登录注册

文章基本信息

  • 标题:A Novel Code Completion Strategy
  • 本地全文:下载
  • 作者:Hayatou Oumarou ; Ousmanou Dahirou
  • 期刊名称:International Journal of Advanced Computer Science and Applications(IJACSA)
  • 印刷版ISSN:2158-107X
  • 电子版ISSN:2156-5570
  • 出版年度:2022
  • 卷号:13
  • 期号:5
  • DOI:10.14569/IJACSA.2022.0130598
  • 语种:English
  • 出版社:Science and Information Society (SAI)
  • 摘要:Programmers rely on a multitude of techniques to speed up the development process. Among these techniques is code completion, a productivity improvement technique widely used by developers to explore APIs and automatically complete a word being typed by providing a progressively refined list of candidate words (or recommendations). Still called auto-completion, it reduces incorrect calls to APIs. Several techniques have been developed to obtain the list of candidates. Some methods use the history of the code, others neural networks or artificial intelligence; some exploit the program’s structure through AST. Often the recommendation list is long, and finding suitable candidates comes at a cost. In this work, we propose a strategy that improves the accuracy of recommendation list offered by code completion. We present a sorting approach based on the popularity and importance of the elements (suggestions) of the list by analyzing the usage data of classes, methods, and variables of projects in the same development environment. We implemented our sorting strategy in Pharo (IDE and language), an immersive modern programming environment to show its applicability. The empirical evaluation results of this strategy show that our approach improves the quality of the suggestions.
  • 关键词:Integrated development environment; code comple-tion; API; code completion tool; pharo
国家哲学社会科学文献中心版权所有