Towards a Model to Appraise and Suggest Identifier Names
Anthony Peruma

TL;DR
This paper investigates how developers choose and rename identifiers in source code, aiming to develop a linguistic model that suggests meaningful names based on identifier behavior, thereby improving code quality and developer productivity.
Contribution
It provides insights into developer motivations and decision-making in naming, and proposes a framework for a model to automatically suggest identifier names.
Findings
Developers consider code behavior and context when naming identifiers.
Renaming improves code clarity but can introduce defects.
A foundation for a linguistic model to predict meaningful identifier names.
Abstract
Unknowingly, identifiers in the source code of a software system play a vital role in determining the quality of the system. Ambiguous and confusing identifier names lead developers to not only misunderstand the behavior of the code but also increases comprehension time and thereby causes a loss in productivity. Even though correcting poor names through rename operations is a viable option for solving this problem, renaming itself is an act of rework and is not immune to defect injection. In this study, we aim to understand the motivations that drive developers to name and rename identifiers and the decisions they make in determining the name. Using our results, we propose the development of a linguistic model that determines identifier names based on the behavior of the identifier. As a prerequisite to constructing the model, we conduct multiple studies to determine the features that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
