Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

A Novel Code Completion Strategy

Author 1: Hayatou Oumarou Author 2: Ousmanou Dahirou
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 13, No. 5 · Published 2022

DOI: https://doi.org/10.14569/IJACSA.2022.0130598

Abstract

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.

Keywords

How to Cite this Article

Oumarou, H., & Dahirou, O. (2022). A Novel Code Completion Strategy. International Journal of Advanced Computer Science and Applications, 13(5). https://doi.org/10.14569/IJACSA.2022.0130598

Oumarou, Hayatou, and Ousmanou Dahirou. "A Novel Code Completion Strategy." International Journal of Advanced Computer Science and Applications, vol. 13, no. 5, 2022, https://doi.org/10.14569/IJACSA.2022.0130598.

@article{Oumarou2022,
  title     = {A Novel Code Completion Strategy},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {13},
  number    = {5},
  year      = {2022},
  publisher = {The Science and Information Organization},
  author    = {Hayatou Oumarou and Ousmanou Dahirou},
  doi       = {10.14569/IJACSA.2022.0130598},
  url       = {https://doi.org/10.14569/IJACSA.2022.0130598}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.