Object-oriented software extensions in practice

被引:4
|
作者
Robbes, Romain [1 ]
Rothlisberger, David [2 ]
Tanter, Eric [1 ]
机构
[1] Univ Chile, PLEIAD Lab, Comp Sci Dept DCC, Santiago, Chile
[2] Univ Diego Portales, Sch Informat & Telecommun, Santiago, Chile
关键词
Object-oriented programming; Software evolution; Data extensions; Operation extensions; Empirical studies; Mining software repositories;
D O I
10.1007/s10664-013-9298-0
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
As software evolves, data types have to be extended, possibly with new data variants or new operations. Object-oriented design is well-known to support data extensions well. In fact, most popular books showcase data extensions to illustrate how objects adequately support software evolution. Conversely, operation extensions are typically better supported by a functional design. A large body of programming language research has been devoted to the challenge of properly supporting both kinds of extensions. While this challenge is well-known from a language design standpoint, it has not been studied empirically. We perform such a study on a large sample of Smalltalk projects (over half a billion lines of code) and their evolution over more than 130,000 committed changes. Our study of extensions during software evolution finds that extensions are indeed prevalent evolution tasks, and that both kinds of extensions are equally common in object-oriented software. We also discuss findings about: the evolution of the kinds of extensions over time; the viability of the Visitor pattern as an object-oriented solution to operation extensions; the change-proneness of extensions; and the prevalence of extensions by third parties. This study suggests that object-oriented design alone is not sufficient, and that practical support for both kinds of program decomposition approaches are in fact needed, either by the programming language or by the development environment.
引用
收藏
页码:745 / 782
页数:38
相关论文
共 50 条
  • [1] Object-oriented software extensions in practice
    Romain Robbes
    David Röthlisberger
    Éric Tanter
    [J]. Empirical Software Engineering, 2015, 20 : 745 - 782
  • [2] OBJECT-ORIENTED SOFTWARE ENGINEERING - PROCESS AND PRACTICE
    EVERETT, RP
    [J]. BT TECHNOLOGY JOURNAL, 1993, 11 (03): : 73 - 78
  • [3] EXTENSIONS TO THE OBJECT-ORIENTED PARADIGM
    SU, SYW
    [J]. PROCEEDINGS : THE THIRTEENTH ANNUAL INTERNATIONAL COMPUTER SOFTWARE & APPLICATIONS CONFERENCE, 1989, : 197 - 199
  • [4] REPORT ON OBJECT-ORIENTED EXTENSIONS TO PASCAL
    BERGIN, J
    [J]. SIGPLAN NOTICES, 1994, 29 (12): : 18 - 24
  • [5] EXTENSIONS AND FOUNDATIONS OF OBJECT-ORIENTED PROGRAMMING
    GOGUEN, JA
    MESEGUER, J
    [J]. SIGPLAN NOTICES, 1986, 21 (10): : 153 - 162
  • [6] Adaptive extensions of object-oriented systems
    Seng, O
    Genssler, T
    Schulz, B
    [J]. GENERIC PROGRAMMING, 2003, 115 : 171 - 186
  • [7] Debugging of object-oriented software
    Law, RCH
    Maguire, RB
    [J]. SEKE '96: THE 8TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, PROCEEDINGS, 1996, : 77 - 84
  • [8] OBJECT-ORIENTED SOFTWARE EVOLUTION
    LIEBERHERR, KJ
    XIAO, C
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1993, 19 (04) : 313 - 343
  • [9] The Theory and Practice of Bilingual Teaching in "Object-Oriented Software Engineering"
    Wei, Zheng
    Tao, Zhang
    Lewis, Chau Hau-Ming
    Duan, Fang-Fang
    [J]. 2009 INTERNATIONAL CONFERENCE ON COMPUTER ENGINEERING AND TECHNOLOGY, VOL II, PROCEEDINGS, 2009, : 417 - 419
  • [10] OBJECT-ORIENTED SOFTWARE TECHNOLOGY
    DEUTSCH, LP
    [J]. COMPUTER, 1991, 24 (09) : 112 - 113