An Empirical Comparison of Java and C# Programs in Following Naming Conventions

Shouki A. Ebad, D. Manzoor
{"title":"An Empirical Comparison of Java and C# Programs in Following Naming Conventions","authors":"Shouki A. Ebad, D. Manzoor","doi":"10.4018/IJPOP.2016010103","DOIUrl":null,"url":null,"abstract":"An important indicator of source code quality is compliance with naming conventions. It is believed that such practices improve program comprehension, which directly affects maintainability and reusability. In this paper, the authors conduct an experiment to determine how well Java and C# programs follow a set of well-publicized naming practices. The experiment evaluated 120 arbitrarily selected open-source Java and C# classes from different programmers with respect to four naming conventions. The results indicate that Java and C# programs do not always follow naming conventions. However, Java developers are more attentive than C# developers in terms of following naming practices. A disturbing trend was found in variable and constant naming conventions, which were violated in most C# subjects. Moreover, there is a positive correlation between the number of violations found in a C# class and its size but a negative correlation in case of Java class. The findings are expected to contribute to the existing knowledge of the use of coding standards and source code quality. The paper also discusses the threats to the validity of the study and suggests open issues for future research.","PeriodicalId":309154,"journal":{"name":"Int. J. People Oriented Program.","volume":"18 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Int. J. People Oriented Program.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4018/IJPOP.2016010103","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

An important indicator of source code quality is compliance with naming conventions. It is believed that such practices improve program comprehension, which directly affects maintainability and reusability. In this paper, the authors conduct an experiment to determine how well Java and C# programs follow a set of well-publicized naming practices. The experiment evaluated 120 arbitrarily selected open-source Java and C# classes from different programmers with respect to four naming conventions. The results indicate that Java and C# programs do not always follow naming conventions. However, Java developers are more attentive than C# developers in terms of following naming practices. A disturbing trend was found in variable and constant naming conventions, which were violated in most C# subjects. Moreover, there is a positive correlation between the number of violations found in a C# class and its size but a negative correlation in case of Java class. The findings are expected to contribute to the existing knowledge of the use of coding standards and source code quality. The paper also discusses the threats to the validity of the study and suggests open issues for future research.
Java和c#程序命名约定的实证比较
源代码质量的一个重要指标是遵从命名约定。人们认为这样的实践提高了程序的可理解性,这直接影响了可维护性和可重用性。在本文中,作者进行了一个实验,以确定Java和c#程序在多大程度上遵循了一组广为人知的命名实践。实验根据四种命名约定评估了120个任意选择的来自不同程序员的开源Java和c#类。结果表明,Java和c#程序并不总是遵循命名约定。然而,Java开发人员比c#开发人员更注重以下命名实践。在变量和常量命名约定中发现了一个令人不安的趋势,这在大多数c#主题中都被违反了。此外,在c#类中发现的违规数量与其大小之间存在正相关关系,但在Java类中存在负相关关系。预计这些发现将有助于对编码标准的使用和源代码质量的现有知识作出贡献。本文还讨论了对研究有效性的威胁,并提出了未来研究的开放性问题。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信