JUCS - Journal of Universal Computer Science 20(5): 797-821, doi: 10.3217/jucs-020-05-0797
What Should I Code Now?
expand article infoLuiz Laerte Nunes Da Silva Junior, Alexandre Plastino, Leonardo Gresta Paulino Murta§
‡ Universidade Federal Fluminense, Niteró, Brazil§ Universidade Federal Fluminense, Niteró
Open Access
Abstract
In the software development field, the amount of data related to documentation and to the source code itself is huge. Relevant knowledge can be extracted from these data, provided that the adequate tools are in place. In this context, data mining can be seen as an important tool. This paper presents a new approach for code completion based on sequential patterns mined from previous developed source code. According to what is being coded, suggestions of new code sequences are made based on the mined patterns. As a result, a plug-in for the Eclipse IDE, named Vertical Code Completion, was developed and applied over widely known Open Source systems, identifying that our approach could provide suggestions that would anticipate what a developer intends to code.
Keywords
code completion, sequential pattern mining, software maintenance