Towards Better Code Snippets: Exploring How Code Snippet Recall Differs with Programming Experience

被引:0
|
作者
Ichinco, Michelle [1 ]
Kelleher, Caitlin [1 ]
机构
[1] Washington Univ, Dept Comp Sci & Engn, St Louis, MO 63110 USA
基金
美国国家科学基金会;
关键词
KNOWLEDGE ORGANIZATION; PHYSICS PROBLEMS; EXPERT; PERCEPTION;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Programmers of all experience levels attempt to leverage code snippets with varying success, often as reminders or to learn new skills. To date, little work has explored the specific elements within code snippets that are challenging for novices. Comparing how novices and experts recall code snippets may expose what code elements programmers focus on and inform new approaches for improving examples for inexperienced programmers. We conducted a study, inspired by past novice-expert studies, in which we asked everyday, occasional, and non-programmers to study and then recall code snippets. The key distinctions and similarities in the types and locations of recalled tokens provide insight for a set of recommendations that could improve the presentation of code snippets.
引用
收藏
页码:37 / 41
页数:5
相关论文
共 50 条
  • [1] How Do Developers Adapt Code Snippets to Their Contexts? An Empirical Study of Context-Based Code Snippet Adaptations
    Zhang, Tanghaoran
    Lu, Yao
    Yu, Yue
    Mao, Xinjun
    Zhang, Yang
    Zhao, Yuxin
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (11) : 2712 - 2731
  • [2] Towards automatically generating block comments for code snippets
    Huang, Yuan
    Huang, Shaohao
    Chen, Huanchao
    Chen, Xiangping
    Zheng, Zibin
    Luo, Xiapu
    Jia, Nan
    Hu, Xinyu
    Zhou, Xiaocong
    INFORMATION AND SOFTWARE TECHNOLOGY, 2020, 127
  • [3] How is programming taught in code clubs? Exploring the experiences and gender perceptions of code club teachers
    Aivaloglou, Efthimia
    Hermans, Felienne
    19TH KOLI CALLING CONFERENCE ON COMPUTING EDUCATION RESEARCH (KOLI CALLING 2019), 2019,
  • [4] IMPROVED APPROACH FOR MEASURING COMPLEXITY OF CODE SNIPPETS FOR INTRODUCTORY PROGRAMMING TASKS
    Stankov, Emil
    Jovanov, Mile
    Bogdanova, Ana Madevska
    10TH INTERNATIONAL CONFERENCE OF EDUCATION, RESEARCH AND INNOVATION (ICERI2017), 2017, : 5892 - 5899
  • [5] How to Better Utilize Code Graphs in Semantic Code Search?
    Shi, Yucen
    Yin, Ying
    Wang, Zhengkui
    Lo, David
    Zhang, Tao
    Xia, Xin
    Zhao, Yuhai
    Xu, Bowen
    PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 722 - 733
  • [6] Towards byte code genetic programming
    Harvey, B
    Foster, J
    Frincke, D
    GECCO-99: PROCEEDINGS OF THE GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 1999, : 1234 - 1234
  • [7] ApproxiFuzzer: Fuzzing towards Deep Code Snippets in Java']Java Programs
    Yu, Xintian
    Ma, Enze
    Nie, Pengbo
    Shen, Beijun
    Chen, Yuting
    Lin, Ziyi
    2021 IEEE 45TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE (COMPSAC 2021), 2021, : 1149 - 1156
  • [8] Towards Summarizing Code Snippets Using Pre-Trained Transformers
    Mastropaolo, Antonio
    Tufano, Rosalia
    Ciniselli, Matteo
    Aghajani, Emad
    Pascarella, Luca
    Bavota, Gabriele
    arXiv, 1600,
  • [9] Towards Summarizing Code Snippets Using Pre-Trained Transformers
    Mastropaolo, Antonio
    Ciniselli, Matteo
    Pascarella, Luca
    Tufano, Rosalia
    Aghajani, Emad
    Bavota, Gabriele
    PROCEEDINGS 2024 32ND IEEE/ACM INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION, ICPC 2024, 2024, : 1 - 12
  • [10] Ironies of Programming Automation: Exploring the Experience of Code Synthesis via Large Language Models
    McCabe, Alan T.
    Bjorkman, Moa
    Engstrom, Joel
    Kuang, Peng
    Soderberg, Emma
    Church, Luke
    PROCEEDINGS OF THE 8TH INTERNATIONAL CONFERENCE ON THE ART, SCIENCE, AND ENGINEERING OF PROGRAMMING, PROGRAMMING COMPANION 2024, 2024, : 12 - 21