DocumentCode :
2706292
Title :
Using structural context to recommend source code examples
Author :
Holmes, Reid ; Murphy, Gail C.
Author_Institution :
Dept. of Comput. Sci., British Columbia Univ., Vancouver, BC, Canada
fYear :
2005
fDate :
15-21 May 2005
Firstpage :
117
Lastpage :
125
Abstract :
When coding to a framework, developers often become stuck, unsure of which class to subclass, which objects to instantiate and which methods to call. Example code that demonstrates the use of the framework can help developers make progress on their task. In this paper, we describe an approach for locating relevant code in an example repository that is based on heuristically matching the structure of the code under development to the example code. Our tool improves on existing approaches in two ways. First, the structural context needed to query the repository is extracted automatically from the code, freeing the developer from learning a query language or from writing their code in a particular style. Second, the repository can be generated easily from existing applications. We demonstrate the utility of this approach by reporting on a case study involving two subjects completing four programming tasks within the Eclipse integrated development environment framework.
Keywords :
object-oriented programming; software tools; development environment framework; example repository; source code example recommendation; structural context; Application software; Computer science; Database languages; Permission; Programming environments; Programming profession; Protocols; Software tools; Utility programs; Writing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Engineering, 2005. ICSE 2005. Proceedings. 27th International Conference on
Print_ISBN :
1-59593-963-2
Type :
conf
DOI :
10.1109/ICSE.2005.1553554
Filename :
1553554
Link To Document :
بازگشت