DocumentCode :
2192006
Title :
On the level of code suggestion for reuse
Author :
Ohtani, Akio ; Higo, Yoshiki ; Ishihara, Tomoya ; Kusumoto, Shinji
Author_Institution :
Grad. Sch. of Inf. Sci. & Technol., Osaka Univ., Suita, Japan
fYear :
2015
fDate :
6-6 March 2015
Firstpage :
26
Lastpage :
32
Abstract :
Code search techniques are well-known as one of the techniques that helps code reuse. If developers input queries that represent functionality that they want, the techniques suggest code fragments that are related to the query. Generally, code search techniques suggest code at the component level of programming language such as class or file. Due to this, developers occasionally need to search necessary code in the suggested area. As a countermeasure, there is a code search technique where code is suggested based on the past reuse. The technique ignores structural code blocks, so that developers need to add some code to the pasted code or remove some code from it. That is, the advantages and disadvantages of the former technique are disadvantages and advantages of the latter one, respectively. In this research, we have conducted a comparative study to reveal which level of code suggestion is more useful for code reuse. In the study, we also compared a hybrid technique of the two techniques with them. As a result, we revealed that component-level suggestions were able to provide reusable code more precisely. On the other hand, reuse-level suggestions were more helpful to reuse larger code.
Keywords :
high level languages; query formulation; software reusability; code reuse; code search techniques; code suggestion; programming language; query processing; structural code blocks; Atmospheric measurements; Cloning; Databases; Graphical user interfaces; Java; Particle measurements; Code clone; Code reuse; Code search;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Clones (IWSC), 2015 IEEE 9th International Workshop on
Conference_Location :
Montreal, QC
Type :
conf
DOI :
10.1109/IWSC.2015.7069886
Filename :
7069886
Link To Document :
بازگشت