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 条
  • [31] OBJECT-ORIENTED DESIGN OF TELECOMMUNICATION SOFTWARE
    YAMAZAKI, S
    KAJIHARA, K
    ITO, M
    YASUHARA, R
    [J]. IEEE SOFTWARE, 1993, 10 (01) : 81 - 87
  • [32] OBJECT-ORIENTED REENGINEERING OF EMBEDDED SOFTWARE
    IHME, T
    NIEMELIA, E
    SALMELA, M
    SEPPANEN, V
    [J]. MECHATRONICS, 1995, 5 (01) : 73 - 86
  • [33] A note on object-oriented software architecting
    Galal, GH
    [J]. OBJECT-ORIENTED TECHNOLOGY: ECOOP'98 WORKSHOP READER, 1998, 1543 : 46 - 47
  • [34] Object-oriented modeling of software patterns
    Kobayashi, T
    Kamo, M
    Sanui, T
    Saeki, M
    [J]. INTERNATIONAL SYMPOSIUM ON PRINCIPLES OF SOFTWARE EVOLUTION, PROCEEDINGS, 2000, : 100 - 109
  • [35] Industrial software gets object-oriented
    Bennett, T
    [J]. CONTROL AND INSTRUMENTATION, 1998, 30 (09): : 31 - 32
  • [36] Agents in object-oriented software engineering
    Garcia, AF
    de Lucena, CJP
    Cowan, DD
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 2004, 34 (05): : 489 - 521
  • [37] Assessment of maintainability in object-oriented software
    Alagar, VS
    Li, QY
    Ormandjieva, OS
    [J]. TOOLS 39: TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS, PROCEEDINGS: SOFTWARE TECHNOLOGY FOR THE AGE OF THE INTERNET, 2001, 39 : 194 - 205
  • [38] Metrics for object-oriented software projects
    Sherif, JS
    Sanderson, P
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 1998, 44 (02) : 147 - 154
  • [39] A complexity metric for object-oriented software
    Yi, Tong
    Fang, Chun
    [J]. International Journal of Computers and Applications, 2020, 42 (06): : 544 - 549
  • [40] AN OBJECT-ORIENTED METHOD FOR SOFTWARE MAINTENANCE
    CHEN, JY
    CHANG, SCV
    [J]. JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1994, 6 (08): : 46 - 51