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 条
  • [1] Approximate structural context matching: An approach to recommend relevant examples
    Holmes, Reid
    Walker, Robert J.
    Murphy, Gail C.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2006, 32 (12) : 952 - 970
  • [2] Do developers search for source code examples using multiple facts?
    Holmes, Reid
    2009 ICSE WORKSHOP ON SEARCH-DRIVEN DEVELOPMENT-USERS, INFRASTRUCTURE, TOOLS AND EVALUATION, 2009, : 13 - 16
  • [3] A fuzzy inference system to recommend skills for source code review using eye movement data
    Chandrika, K. R.
    Amudha, J.
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2018, 34 (03) : 1743 - 1754
  • [4] Database Optimization of the Source Code to Recommend Software Developers using Canonical Order Tree Algorithm
    Bhuiyan, T. M. Amir-Ul-Haque
    Talukder, Mehedi Hasan
    Rahman, Ziaur
    Rahman, Mohammad Motiur
    2015 INTERNATIONAL CONFERENCE ON ADVANCES IN ELECTRICAL ENGINEERING (ICAEE), 2015, : 157 - 160
  • [5] Transforming Source Code Examples into Programming Tutorials
    Gajraj, Roger Rudolph
    Williams, Malcolm
    Bernard, Margaret
    Singh, Lenandlar
    SIXTH INTERNATIONAL MULTI-CONFERENCE ON COMPUTING IN THE GLOBAL INFORMATION TECHNOLOGY (ICCGI 2011), 2011, : 160 - 164
  • [6] Using a Context-Aware Approach to Recommend Code Reviewers: Findings from an Industrial Case Study
    Strand, Anton
    Gunnarson, Markus
    Britto, Ricardo
    Usman, Muhmmad
    2020 IEEE/ACM 42ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: SOFTWARE ENGINEERING IN PRACTICE (ICSE-SEIP), 2020, : 1 - 10
  • [7] Studying Students' Attitudes on Using Examples of Game Source Code for Learning Programming
    Theodoraki, Aristea
    Xinogalos, Stelios
    INFORMATICS IN EDUCATION, 2014, 13 (02): : 265 - 277
  • [8] On the Use of Context in Recommending Exception Handling Code Examples
    Rahman, Mohammad Masudur
    Roy, Chanchal K.
    2014 14TH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM 2014), 2014, : 285 - 294
  • [9] Embedding Programming Context into Source Code
    Breckel, Alexander
    Tichy, Matthias
    2016 IEEE 24TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2016,
  • [10] Extracting the Source Code Context to Predict Import Changes using GPES
    Lee, Jaekwon
    Kim, Kisub
    Lee, Yong-Hyeon
    Hong, Jang-Eui
    Seo, Young-Hoon
    Yang, Byung-Do
    Jung, Woosung
    KSII TRANSACTIONS ON INTERNET AND INFORMATION SYSTEMS, 2017, 11 (02): : 1234 - 1249