Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1109/ICPC.2019.00035acmconferencesArticle/Chapter ViewAbstractPublication PagesicseConference Proceedingsconference-collections
research-article

To CamelCase or under_score

Published: 25 May 2019 Publication History

Abstract

Naming conventions are generally adopted in an effort to improve program comprehension. Two of the most popular conventions are alternatives for composing multi-word identifiers: the use of underscores and the use of camel casing. While most programmers have a personal opinion as to which style is better, empirical study forms a more appropriate basis for choosing between them.
The central hypothesis considered herein is that identifier style affects the speed and accuracy of manipulating programs. An empirical study of 135 programmers and non-programmers was conducted to better understand the impact of identifier style on code readability. The experiment builds on past work of others who study how readers of natural language perform such tasks. Results indicate that camel casing leads to higher accuracy among all subjects regardless of training, and those trained in camel casing are able to recognize identifiers in the camel case style faster than identifiers in the underscore style.

Cited By

View all
  • (2021)On the Naming of MethodsProceedings of the 43rd International Conference on Software Engineering10.1109/ICSE43902.2021.00061(587-599)Online publication date: 22-May-2021
  • (2019)IndentationProceedings of the 27th International Conference on Program Comprehension10.1109/ICPC.2019.00033(154-164)Online publication date: 25-May-2019

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ICPC '19: Proceedings of the 27th International Conference on Program Comprehension
May 2019
400 pages

Sponsors

Publisher

IEEE Press

Publication History

Published: 25 May 2019

Check for updates

Qualifiers

  • Research-article

Conference

ICSE '19
Sponsor:

Upcoming Conference

ICSE 2025

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 18 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2021)On the Naming of MethodsProceedings of the 43rd International Conference on Software Engineering10.1109/ICSE43902.2021.00061(587-599)Online publication date: 22-May-2021
  • (2019)IndentationProceedings of the 27th International Conference on Program Comprehension10.1109/ICPC.2019.00033(154-164)Online publication date: 25-May-2019

View Options

View options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media