• DocumentCode
    2745231
  • Title

    The Factory Pattern in API Design: A Usability Evaluation

  • Author

    Ellis, Brian ; Stylos, Jeffrey ; Myers, Brad

  • Author_Institution
    Carnegie Mellon Univ., Pittsburgh, PA
  • fYear
    2007
  • fDate
    20-26 May 2007
  • Firstpage
    302
  • Lastpage
    312
  • Abstract
    The usability of software APIs is an important and infrequently researched topic. A user study comparing the usability of the factory pattern and constructors in API designs found highly significant results indicating that factories are detrimental to API usability in several varied situations. The results showed that users require significantly more time (p = 0.005) to construct an object with a factory than with a constructor while performing both context-sensitive and context- free tasks. These results suggest that the use of factories can and should be avoided in many cases where other techniques, such as constructors or class clusters, can be used instead.
  • Keywords
    application program interfaces; object-oriented programming; API design; application program interface; context-free task; context-sensitive task; factory pattern; software usability evaluation; Application software; Encapsulation; Handheld computers; Production facilities; Programming profession; Protocols; Software libraries; Unified modeling language; Usability; Writing;
  • 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.85
  • Filename
    4222592