Using structural context to recommend source code examples

被引:0
|
作者
Holmes, R [1 ]
Murphy, GC [1 ]
机构
[1] Univ British Columbia, Dept Comp Sci, Vancouver, BC V6T 1Z4, Canada
关键词
recommender; examples; software structure; development environment framework;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:117 / 125
页数:9
相关论文
共 50 条
  • [31] Structural form as an analogical source for structures of nature: two examples
    Dias, Priyan
    Hahn, Robert
    JOURNAL OF THE NATIONAL SCIENCE FOUNDATION OF SRI LANKA, 2019, 47 (03): : 323 - 331
  • [32] The Impact of Structural Source Code Changes on Software Quality
    Gerlec, Crt
    Hericko, Marjan
    NUMERICAL ANALYSIS AND APPLIED MATHEMATICS (ICNAAM 2012), VOLS A AND B, 2012, 1479 : 470 - 473
  • [33] On using Stack Overflow comment-edit pairs to recommend code maintenance changes
    Henry Tang
    Sarah Nadi
    Empirical Software Engineering, 2021, 26 (4)
  • [34] Learning Sequential and Structural Information for Source Code Summarization
    Choi, YunSeok
    Bak, JinYeong
    Na, CheolWon
    Lee, Jee-Hyong
    FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, ACL-IJCNLP 2021, 2021, : 2842 - 2851
  • [35] On using Stack Overflow comment-edit pairs to recommend code maintenance changes
    Tang, Henry
    Nadi, Sarah
    EMPIRICAL SOFTWARE ENGINEERING, 2021, 26 (04)
  • [36] USING CONVERT TO TRANSFORM SOURCE CODE
    WOLBERG, JR
    RAFAL, M
    SOFTWARE-PRACTICE & EXPERIENCE, 1979, 9 (11): : 881 - 890
  • [37] Analysis of Source Code Using UPPAAL
    Kulczynski, Mitja
    Legay, Axel
    Nowotka, Dirk
    Poulsen, Danny Bogsted
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2021, (338): : 31 - 38
  • [38] Code Coverage of Assertions Using RTL Source Code Analysis
    Athavale, Viraj
    Ma, Sai
    Hertz, Samuel
    Vasudevan, Shobha
    2014 51ST ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2014,
  • [39] Code thumbnails: Using spatial memory to navigate source code
    DeLine, Robert
    Czerwinski, Mary
    Meyers, Brian
    Venolia, Gina
    Drucker, Steven
    Robertson, George
    IEEE SYMPOSIUM ON VISUAL LANGUAGES AND HUMAN-CENTRIC COMPUTING, PROCEEDINGS, 2006, : 11 - +
  • [40] Using Fuzzy Code Search to Link Code Fragments in Discussions to Source Code
    Bettenburg, Nicolas
    Thomas, Stephen W.
    Hassan, Ahmed E.
    2012 16TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR), 2012, : 319 - 328