How students choose names: A replication study

被引:0
|
作者
Mi, Qing [1 ]
Wang, Xiaoke [1 ]
Chen, Bingnuo [1 ]
机构
[1] Beijing Univ Technol, Beijing, Peoples R China
关键词
variable name; naming education; survey; code readability; program comprehension;
D O I
10.1145/3551349.3561174
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Names of classes/methods/variables play an important role in code readability. To investigate how developers choose names, Feitelson et al. conducted an empirical survey and suggested a method to improve naming quality. We replicated their study, but limited the survey subjects to university students. Specifically, we conducted two experiments including 341 students from freshmen to seniors. The aim of the first experiment was to investigate the characteristics of the names given by students. The experimental results showed that the name length as well as the number of words contained in names increased with the grade and students have ambiguity in understanding variable names. The second experiment was to verify whether Feitelson et al.'s naming method can help improve the quality of the names given by students. The experimental results showed an improvement in naming quality for more than 67% of cases, which confirms the validity of the method for university students.
引用
收藏
页数:5
相关论文
共 50 条
  • [1] How Developers Choose Names
    Feitelson, Dror G.
    Mizrahi, Ayelet
    Noy, Nofar
    Ben Shabat, Aviad
    Eliyahu, Or
    Sheffer, Roy
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (01) : 37 - 52
  • [2] Names and Narcissism: A Clinical Perspective on How Parents Choose Names for Their Newborn
    Nadav, Meir
    Ephratt, Michal
    Rabin, Stanley
    Shiber, Asher
    [J]. NAMES-A JOURNAL OF ONOMASTICS, 2011, 59 (02): : 90 - 103
  • [3] In the Beginning: How Medical Students Choose (or Do Not Choose) Neurology
    Humbert, Kelley A.
    Chang, Bernard S.
    [J]. ANNALS OF NEUROLOGY, 2014, 75 (04) : 487 - 489
  • [4] How to choose a non-controversial list with k names
    Salvador Barberà
    Danilo Coelho
    [J]. Social Choice and Welfare, 2008, 31 : 79 - 96
  • [5] How to choose a non-controversial list with k names
    Barbera, Salvador
    Coelho, Danilo
    [J]. SOCIAL CHOICE AND WELFARE, 2008, 31 (01) : 79 - 96
  • [6] HIDDEN CAREER - HOW STUDENTS CHOOSE ENGINEERING
    DURCHHOLZ, P
    [J]. ENGINEERING EDUCATION, 1979, 69 (07): : 718 - 722
  • [7] HOW COLLEGE-STUDENTS CHOOSE IS CAREERS
    ZAWACKI, RA
    SCOTT, DK
    ZAWACKI, PA
    [J]. DATAMATION, 1988, 34 (18): : 40 - &
  • [8] HOW CAREFULLY DO STUDENTS CHOOSE THEIR ELECTIVES
    YOCUM, JO
    [J]. AGRONOMY JOURNAL, 1960, 52 (06) : 358 - &
  • [9] How can clinicians choose between conflicting and discordant systematic reviews? A replication study of the Jadad algorithm
    Lunny, C.
    Thirugnanasampanthar, Sai Surabi
    Kanji, S.
    Ferri, N.
    Pieper, D.
    Whitelaw, S.
    Tasnim, S.
    Nelson, H.
    Reid, E. K.
    Zhang, Jia He Janet
    Kalkat, Banveer
    Chi, Yuan
    Abdoulrezzak, Reema
    Zheng, Di Wen
    Pangka, Lindy R. S.
    Wang, Dian
    Safavi, Parisa
    Sooch, Anmol
    Kang, Kevin T.
    Tricco, Andrea C.
    [J]. BMC MEDICAL RESEARCH METHODOLOGY, 2022, 22 (01)
  • [10] How can clinicians choose between conflicting and discordant systematic reviews? A replication study of the Jadad algorithm
    C Lunny
    Sai Surabi Thirugnanasampanthar
    S Kanji
    N Ferri
    D Pieper
    S Whitelaw
    S Tasnim
    H Nelson
    EK Reid
    Jia He (Janet) Zhang
    Banveer Kalkat
    Yuan Chi
    Reema Abdoulrezzak
    Di Wen Zheng
    Lindy R.S. Pangka
    Dian (Xin Ran) Wang
    Parisa Safavi
    Anmol Sooch
    Kevin T. Kang
    Andrea C, Tricco
    [J]. BMC Medical Research Methodology, 22