首页> 外文会议>International Conference on Program Comprehension >Polymorphism in the Spotlight: Studying Its Prevalence in Java and Smalltalk
【24h】

Polymorphism in the Spotlight: Studying Its Prevalence in Java and Smalltalk

机译:聚焦中的多态性:研究其在Java和Smalltalk中的流行程度

获取原文

摘要

Subtype polymorphism is a cornerstone of object-oriented programming. By hiding variability in behavior behind a uniform interface, polymorphism decouples clients from providers and thus enables genericity, modularity and extensibility. At the same time, however, it scatters the implementation of the behavior over multiple classes thus potentially hampering program comprehension. The extent to which polymorphism is used in real programs and the impact of polymorphism on program comprehension are not very well understood. We report on a preliminary study of the prevalence of polymorphism in several hundred open source software systems written in Smalltalk, one of the oldest object-oriented programming languages, and in Java, one of the most widespread ones. Although a large portion of the call sites in these systems are polymorphic, a majority have a small number of potential candidates. Smalltalk uses polymorphism to a much greater extent than Java. We discuss how these findings can be used as input for more detailed studies in program comprehension and for better developer support in the IDE.
机译:子类型多态性是面向对象编程的基石。通过将行为的可变性隐藏在统一的接口后面,多态性将客户端与提供程序解耦,从而实现通用性,模块化和可扩展性。但是,与此同时,它会将行为的实现分散到多个类上,从而有可能妨碍程序理解。在实际程序中使用多态的程度以及多态对程序理解的影响还不是很清楚。我们报告了对以最古老的面向对象编程语言之一的Smalltalk和最广泛使用的语言之一的Java编写的数百个开源软件系统中多态性的普遍性的初步研究。尽管这些系统中的大部分呼叫站点是多态的,但大多数具有少量潜在候选者。与Java相比,Smalltalk使用多态的程度要高得多。我们讨论如何将这些发现用作程序理解的更详细研究的输入,以及如何在IDE中为开发人员提供更好的支持。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号