• DocumentCode
    2745644
  • Title

    Usability Implications of Requiring Parameters in Objects´ Constructors

  • Author

    Stylos, Jeffrey ; Clarke, Steven

  • Author_Institution
    Carnegie Mellon Univ., Pittsburgh, PA
  • fYear
    2007
  • fDate
    20-26 May 2007
  • Firstpage
    529
  • Lastpage
    539
  • Abstract
    The usability of APIs is increasingly important to programmer productivity. Based on experience with usability studies of specific APIs, techniques were explored for studying the usability of design choices common to many APIs. A comparative study was performed to assess how professional programmers use APIs with required parameters in objects\´ constructors as opposed to parameterless "default" constructors. It was hypothesized that required parameters would create more usable and self- documenting APIs by guiding programmers toward the correct use of objects and preventing errors. However, in the study, it was found that, contrary to expectations, programmers strongly preferred and were more effective with APIs that did not require constructor parameters. Participants\´ behavior was analyzed using the cognitive dimensions framework, and revealing that required constructor parameters interfere with common learning strategies, causing undesirable premature commitment.
  • Keywords
    application program interfaces; inference mechanisms; API; cognitive dimensions framework; error prevention; learning strategies; object constructors; programmer productivity; Computer languages; Debugging; Error correction; Java; Productivity; Programming profession; Reactive power; Software engineering; Software testing; Usability;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering, 2007. ICSE 2007. 29th International Conference on
  • Conference_Location
    Minneapolis, MN
  • ISSN
    0270-5257
  • Print_ISBN
    0-7695-2828-7
  • Type

    conf

  • DOI
    10.1109/ICSE.2007.92
  • Filename
    4222614