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 freshman to senior. 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 level and students have ambiguity in understanding the name. The second experiment was to verify whether Feitelson et al.’s naming method can help improve the quality of names given by students. The experimental data showed an improvement in the quality of names for 70% of cases, which confirms the validity of the method for university students.
Mon 10 OctDisplayed time zone: Eastern Time (US & Canada) change
10:25 - 11:00 | Paper Presentation Session 1: Identifier Names[Workshop] AeSIR '22 at Online Workshop 3 Chair(s): Felipe Ebert Fontys University of Applied Sciences | ||
10:25 10mPaper | Namesake: A Checker of Lexical Similarity in Identifier NamesVirtual [Workshop] AeSIR '22 Naser Al Madi Colby College | ||
10:35 10mPaper | How students choose names: A replication studyVirtual [Workshop] AeSIR '22 | ||
10:45 15mLive Q&A | Q&A and Open Discussion on Identifier NamesVirtual [Workshop] AeSIR '22 |