arrow
返回

How Developers Choose Names

delete2022-01-01
delete23
delete
OA
AI
Dror G. Feitelson 封面图
Dror G. Feitelson (Dror G. Feitelson) *
A
Ayelet Mizrahi
N
Nofar Noy
A
Aviad Ben Shabat
O
Or Eliyahu
R
Roy Sheffer
DOI:10.1109/TSE.2020.2976920delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
The names of variables and functions serve as implicit documentation and are instrumental for program comprehension. But choosing good meaningful names is hard. We perform a sequence of experiments in which a total of 334 subjects are required to choose names in given programming scenarios. The first experiment shows that the probability that two developers would select the same name is low: in the 47 instances in our experiments the median probability was only 6.9 percent. At the same time, given that a specific name is chosen, it is usually understood by the majority of developers. Analysis of the names given in the experiment suggests a model where naming is a (not necessarily cognizant or serial) three-step process: (1) selecting the concepts to include in the name, (2) choosing the words to represent each concept, and (3) constructing a name using these words. A followup experiment, using the same experimental setup, then checked whether using this model explicitly can improve the quality of names. The results were that names selected by subjects using the model were judged by two independent judges to be superior to names chosen in the original experiment by a ratio of two-to-one. Using the model appears to encourage the use of more concepts and longer names.
Keyword:
variable naming
code comprehension
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

Shortening Overlong Method Names with Abbreviations
err2024-11-22
err0
PREAI
errJiang, Yanjie; Liu, Hui; Cheung, Shing Chi; Zhang, Lu
err分享
err收藏
err分享
err收藏
err分享
err收藏

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
3.0K
被引数:
1.3W

机构

H
hebrew university of jerusalem
学者数:
1.3K
论文数: 507
被引数: 1.5W
引用论文

引用论文

The cytoplasmic protein GAP is implicated as the target for regulation by the ras gene product
err1988-04-01
err0
PREAI
errCarmela Calés; John F. Hancock; Christopher J. Marshall; Alan Hall
err分享
err收藏
Search for seismic discontinuities in the lower mantle
err2001-09-01
err0
errOAAI
errLev Vinnik; Mamoru Kato; Hitoshi Kawakatsu
err分享
err收藏
On the Naturalness of Software论软件的自然性
err2016-04-26
err164
PREAI
errHindle, Abram; Barr, Earl T.; Gabel, Mark; Su, Zhendong; Devanbu, Premkumar
err分享
err收藏
err分享
err收藏
The Puerto Rico Gap Analysis Project Volume 1: land cover, vertebrate species distributions, and land stewardship
err
IF0
err2008-01-01
err0
errOAAI
errW. A. Gould; C. Alarcon; B. Fevold; M.E. Jimenez; S. Martinuzzi; G. Potts; M. Quinones; M. Solórzano; E. Ventosa
err分享
err收藏
Code Clarity
err2016-03-01
err8
PREAI
errHolzmann, Gerard J.
err分享
err收藏
THE VOCABULARY PROBLEM IN HUMAN SYSTEM COMMUNICATION
err1987-11-01
err776
errOAAI
errFURNAS, GW; LANDAUER, TK; GOMEZ, LM; DUMAIS, ST
err分享
err收藏
Measuring the impact of lexical and structural inconsistencies on developers' cognitive load during bug localization
err2019-08-08
err28
PREAI
errFakhoury, Sarah; Roy, Devjeet; Ma, Yuzhan; Arnaoudova, Venera; Adesope, Olusola
err分享
err收藏
Rate of inactivation of adenyl cyclase and phosphodiesterase: Determinants of brain cyclic AMP
err1974-04-01
err0
PREAI
errDavid J. Jones; Miguel A. Medina; David H. Ross; William B. Stavinoha
err分享
err收藏
学者 查看更多内容