Understanding the Impact of Collection Contracts on Design

被引:0
|
作者
Nelson, Stephen [1 ]
Pearce, David J. [1 ]
Noble, James [1 ]
机构
[1] Victoria Univ Wellington, Wellington, New Zealand
来源
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Java provides a specification for a user-defined general purpose equivalence operator for objects, but collections such as Set have more stringent requirements. This inconsistency breaks polymorphism: programmers must take care to follow Set's contract rather than the more general Object contract if their object could enter a Set. We have dynamically profiled 30 Java applications to better understand the way programmers design their objects, to determine whether they program with collections in mind. Our results indicate that objects which enter collections behave very differently to objects which do not. Our findings should help developers understand the impact of design choices they make, and guide future language designers when adding support for collections and/or equality.
引用
收藏
页码:61 / 78
页数:18
相关论文
共 50 条
  • [21] Understanding Code Reuse in Smart Contracts
    Chen, Xiangping
    Liao, Peiyong
    Zhang, Yixin
    Huang, Yuan
    Zheng, Zibin
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2021), 2021, : 470 - 479
  • [22] On the Need of Understanding the Failures of Smart Contracts
    Wang, Dabao
    Liu, Kui
    Li, Li
    IEEE SOFTWARE, 2020, 37 (05) : 49 - 54
  • [23] NEC contracts for design-build-operate contracts
    Patterson, Richard L.
    Trebes, Barry
    PROCEEDINGS OF THE INSTITUTION OF CIVIL ENGINEERS-MANAGEMENT PROCUREMENT AND LAW, 2013, 166 (05) : 260 - 268
  • [24] Understanding and predicting the impact of location and load on microgrid design
    Zachar, Michael
    Daoutidis, Prodromos
    ENERGY, 2015, 90 : 1005 - 1023
  • [25] Understanding the impact of collaboration software on product design and development
    Banker, Rajiv D.
    Bardhan, Indranil
    Asdemir, Ozer
    INFORMATION SYSTEMS RESEARCH, 2006, 17 (04) : 352 - 373
  • [26] Smart Contracts for Ethical Mobile Data Collection and Usage
    Cedeno-Garcia, Jose R.
    Favela, Jesus
    Sanchez-Torres, Carlos E.
    ADJUNCT PROCEEDINGS OF THE 2023 ACM INTERNATIONAL JOINT CONFERENCE ON PERVASIVE AND UBIQUITOUS COMPUTING & THE 2023 ACM INTERNATIONAL SYMPOSIUM ON WEARABLE COMPUTING, UBICOMP/ISWC 2023 ADJUNCT, 2023, : 346 - 351
  • [27] If You Build it, They Will Come: Collection Management of Construction Contracts
    O'Malley, Debra
    LEGAL INFORMATION MANAGEMENT, 2023, 23 (04) : 255 - 263
  • [28] Leveraging impact of biodefense contracts
    Dutton, Gail
    GENETIC ENGINEERING & BIOTECHNOLOGY NEWS, 2007, 27 (19): : 14 - +
  • [29] UNDERSTANDING CONSTRUCTION CONTRACTS - A MYRIAD OF SPECIAL CLAUSES
    CURRIE, OA
    DORRIS, WE
    ARBITRATION JOURNAL, 1986, 41 (01): : 3 - 16
  • [30] The impact of personality on psychological contracts
    Raja, U
    Johns, G
    Ntalianis, F
    ACADEMY OF MANAGEMENT JOURNAL, 2004, 47 (03): : 350 - 367