首页> 外文期刊>ACM SIGPLAN Notices: A Monthly Publication of the Special Interest Group on Programming Languages >Do Developers Benefit from Generic Types? An Empirical Comparison of Generic and Raw Types in Java
【24h】

Do Developers Benefit from Generic Types? An Empirical Comparison of Generic and Raw Types in Java

机译:开发人员会从通用类型中受益吗? Java中泛型和原始类型的经验比较

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

摘要

Type systems that permit developers to express themselves more precisely are one of the primary topics in programming language research, as well as in industrial software development. While it seems plausible that an expressive static type system increases developer productivity, there is little empirical evidence for or against this hypothesis. Generic types in Java are an example: as an extension of Java’s original type system, some claim that Java 1.5 improves the type system’s “expressiveness.” Even if this claim is true, there exists little empirical evidence that claimed expressiveness leads to a measurable increase in developer productivity. This paper introduces an experiment where generic types (in comparison to raw types) have been evaluated in three different directions: (1) the documentation impact on undocumented APIs, (2) the time required for fixing type errors, and (3) the extensibility of a generic type hierarchy. The results of the experiment suggest that generic types improve documentation and reduce extensibility – without revealing a difference in the time required for fixing type errors.
机译:允许开发人员更精确地表达自己的类型系统是编程语言研究以及工业软件开发中的主要主题之一。尽管表达性静态类型系统可以提高开发人员的生产率似乎是合理的,但几乎没有经验证据支持或反对这种假设。 Java中的泛型类型就是一个例子:作为Java原始类型系统的扩展,有人声称Java 1.5改善了类型系统的“表现力”。即使这一说法是正确的,也几乎没有经验证据表明声称的表现力会导致开发人员生产率的显着提高。本文介绍了一个实验,该实验从三个不同的方向评估了通用类型(与原始类型相比):( 1)文档对未文档化的API的影响;(2)修复类型错误所需的时间;(3)可扩展性通用类型层次结构。实验结果表明,泛型类型可以改善文档编制并降低可扩展性,而不会揭示解决类型错误所需的时间差异。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利