Title :
Effective API navigation and reuse
Author :
Alnusair, Awny ; Zhao, Tian ; Bodden, Eric
Author_Institution :
Dept. of Comput. Sci., Univ. of Wisconsin-Milwaukee, Milwaukee, WI, USA
Abstract :
Most reuse libraries come with few source-code examples that demonstrate how the library at hand should be used. We have developed a source-code recommendation approach for constructing and delivering relevant code snippets that programmers can use to complete a certain programming task. Our approach is semantic-based; relying on an explicit ontological representation of source-code. We argue that such representation opens new doors for an improved recommendation mechanism that ensures relevancy and accuracy. Current recommendation systems require an existing repository of relevant code samples. However, for many libraries, such a repository does not exist. Therefore, we instead utilize points-to analysis to infer precise type information of library components. We have backed our approach with a tool that has been tested on multiple libraries. The obtained results are promising and demonstrate the effectiveness of our approach.
Keywords :
application program interfaces; ontologies (artificial intelligence); recommender systems; software libraries; software reusability; API navigation; API reuse; application program interfaces; ontological representation; points-to analysis; programming task; recommendation systems; relevant code snippets; reuse libraries; source-code recommendation approach; source-code representation; Context; Libraries; OWL; Ontologies; Programming; Resource description framework; Runtime; Code reuse; Ontology; Points-to analysis;
Conference_Titel :
Information Reuse and Integration (IRI), 2010 IEEE International Conference on
Conference_Location :
Las Vegas, NV
Print_ISBN :
978-1-4244-8097-5
DOI :
10.1109/IRI.2010.5558972