- Library Home /
- Search Collections /
- Open Collections /
- Browse Collections /
- UBC Theses and Dissertations /
- Using structural context to recommend source code examples
Open Collections
UBC Theses and Dissertations
UBC Theses and Dissertations
Using structural context to recommend source code examples Holmes, Reid
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 thesis, 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.
Item Metadata
Title |
Using structural context to recommend source code examples
|
Creator | |
Publisher |
University of British Columbia
|
Date Issued |
2004
|
Description |
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 thesis, 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.
|
Extent |
5583374 bytes
|
Genre | |
Type | |
File Format |
application/pdf
|
Language |
eng
|
Date Available |
2009-11-24
|
Provider |
Vancouver : University of British Columbia Library
|
Rights |
For non-commercial purposes only, such as research, private study and education. Additional conditions apply, see Terms of Use https://open.library.ubc.ca/terms_of_use.
|
DOI |
10.14288/1.0103854
|
URI | |
Degree | |
Program | |
Affiliation | |
Degree Grantor |
University of British Columbia
|
Graduation Date |
2004-11
|
Campus | |
Scholarly Level |
Graduate
|
Aggregated Source Repository |
DSpace
|
Item Media
Item Citations and Data
Rights
For non-commercial purposes only, such as research, private study and education. Additional conditions apply, see Terms of Use https://open.library.ubc.ca/terms_of_use.