首页> 外文期刊>International Journal of People-Oriented Programming >An Empirical Comparison of Java and C# Programs in Following Naming Conventions
【24h】

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

机译:遵循命名约定的Java和C#程序的经验比较

获取原文
获取原文并翻译 | 示例

摘要

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#程序遵循一套广为人知的命名惯例的程度。该实验针对四种命名约定对来自不同程序员的120个任意选择的开源Java和C#类进行了评估。结果表明Java和C#程序并不总是遵循命名约定。但是,在遵循以下命名惯例方面,Java开发人员比C#开发人员更专心。在可变和常量命名约定中发现了令人不安的趋势,在大多数C#主题中都违反了这种约定。此外,在C#类中发现的违例数量与其大小之间存在正相关,而在Java类的情况下则具有负相关。预期这些发现将有助于编码标准的使用和源代码质量的现有知识。本文还讨论了对研究有效性的威胁,并提出了需要进一步研究的未解决问题。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号