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 条
  • [1] The impact of contracts on ship design preparation
    Fisher, K.W., 2012, Society of Naval Architects and Marine Engineers (120):
  • [2] The Impact of Contracts on Ship Design Preparation
    Fisher, Kenneth W.
    JOURNAL OF SHIP PRODUCTION AND DESIGN, 2012, 28 (02): : 87 - 95
  • [3] Collection contracts: post carbone
    World Wastes, 11 (46):
  • [4] Impact of an equal pay norm on the optimal design of incentive contracts
    Krapp M.
    Sandner K.
    Journal of Business Economics, 2016, 86 (3) : 301 - 338
  • [5] Collection understanding
    Chang, M
    Leggett, JJ
    Furuta, R
    Kerne, A
    Williams, JP
    Burns, SA
    Bias, RG
    JCDL 2004: PROCEEDINGS OF THE FOURTH ACM/IEEE JOINT CONFERENCE ON DIGITAL LIBRARIES: GLOBAL REACH AND DIVERSE IMPACT, 2004, : 334 - 342
  • [6] Understanding Collection Understanding with Collage
    Cunningham, Sally Jo
    Bennett, Erin
    DIGITAL LIBRARIES: UNIVERSAL AND UBIQUITOUS ACCESS TO INFORMATION, PROCEEDINGS, 2008, 5362 : 367 - 370
  • [7] Understanding Task Design Trade-offs in Crowdsourced Paraphrase Collection
    Jiang, Youxuan
    Kummerfeld, Jonathan K.
    Lasecki, Walter S.
    PROCEEDINGS OF THE 55TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2017), VOL 2, 2017, : 103 - 109
  • [8] Understanding the impact and design of AI teammate etiquette
    Flathmann, Christopher
    McNeese, Nathan J.
    Schelble, Beau
    Knijnenburg, Bart
    Freeman, Guo
    HUMAN-COMPUTER INTERACTION, 2024, 39 (5-6): : 444 - 471
  • [9] Immersive Experience Impact on Students' Understanding of Design
    Cummings, Antonette T.
    Zoltowski, Carla B.
    Hsu, Ming-Chien
    Cardella, Monica E.
    Oakes, William C.
    2014 ASEE ANNUAL CONFERENCE, 2014,
  • [10] TOWARDS AN UNDERSTANDING OF THE IMPACT OF RESOURCES ON THE DESIGN PROCESS
    Boyle, Iain
    Duffy, Alex H. B.
    Whitfield, R. Ian
    Liu, Shaofeng
    ICED 09 - THE 17TH INTERNATIONAL CONFERENCE ON ENGINEERING DESIGN, VOL 1: DESIGN PROCESSES, 2009, : 323 - 334