Spotting Familiar Code Snippet Structures for Program Comprehension

被引:1
|
作者
Vinayakarao, Venkatesh [1 ]
机构
[1] Indraprastha Inst Informat Technol Delhi, New Delhi, India
关键词
Variant Repository; Structure Matching;
D O I
10.1145/2786805.2807560
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Developers deal with the persistent problem of understanding non-trivial code snippets. To understand the given implementation, its issues, and available choices, developers will bene fit from reading relevant discussions and descriptions over the web. However, there is no easy way to know the relevant natural language terms so as to reach to such descriptions from a code snippet, especially if the documentation is inadequate and if the vocabulary used in the code is not helpful for web search. We propose an approach to solve this problem using a repository of topics and associated structurally variant snippets collected from a discussion forum. In this on-going work, we take Java methods from the code samples of three Java books, match them with the repository, and associate the topics with 76.9% precision and 66.7% recall.
引用
收藏
页码:1054 / 1056
页数:3
相关论文
共 50 条
  • [31] Dogs’ comprehension of referential emotional expressions: familiar people and familiar emotions are easier
    I. Merola
    E. Prato-Previde
    M. Lazzaroni
    S. Marshall-Pescini
    Animal Cognition, 2014, 17 : 373 - 385
  • [32] Effect of familiar content on paragraph comprehension in aphasia
    Jones, Doreen Krackenfels
    Pierce, Robert S.
    Mahoney, Molly
    Smeach, Kim
    APHASIOLOGY, 2007, 21 (12) : 1218 - 1229
  • [33] NLP2Code: Code Snippet Content Assist via Natural Language Tasks
    Campbell, Brock Angus
    Treude, Christoph
    2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2017, : 628 - 632
  • [34] Program comprehension experiences with GXL; comprehension for comprehension
    Knight, C
    Munro, M
    10TH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION, PROCEEDINGS, 2002, : 147 - 156
  • [35] SnipMatch: Using Source Code Context to Enhance Snippet Retrieval and Parameterization
    Wightman, Doug
    Ye, Zi
    Brandt, Joel
    Vertegaal, Roel
    UIST'12: PROCEEDINGS OF THE 25TH ANNUAL ACM SYMPOSIUM ON USER INTERFACE SOFTWARE AND TECHNOLOGY, 2012, : 219 - 228
  • [36] Program comprehension
    Canfora, G
    Lakhotia, A
    JOURNAL OF SYSTEMS AND SOFTWARE, 1999, 44 (03) : 169 - 170
  • [37] An exploratory study of code and document interactions during task-directed program comprehension
    Parkin, P
    2004 AUSTRALIAN SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 2004, : 221 - 230
  • [38] The Impact of Code Bloat on Genetic Program Comprehension: Replication of a Controlled Experiment on Semantic Inference
    Kosar, Tomaz
    Kovacevic, Zeljko
    Mernik, Marjan
    Slivnik, Bostjan
    MATHEMATICS, 2023, 11 (17)
  • [39] Developing Application Specific Ontology for Program Comprehension by Combining Domain Ontology with Code Ontology
    Zhou, Hong
    Chen, Feng
    Yang, Hongji
    QSIC 2008: PROCEEDINGS OF THE EIGHTH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE, 2008, : 225 - 234
  • [40] Thinking Aloud about Confusing Code A Qualitative Investigation of Program Comprehension and Atoms of Confusion
    Gopstein, Dan
    Fayard, Anne-Laure
    Apel, Sven
    Cappos, Justin
    PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, : 605 - 616