• DocumentCode
    2619090
  • Title

    Evaluating forum discussions to inform the design of an API critic

  • Author

    Rupakheti, Chandan R. ; Hou, Daqing

  • Author_Institution
    Dept. of Electr. & Comput. Eng., Clarkson Univ., Potsdam, NY, USA
  • fYear
    2012
  • fDate
    11-13 June 2012
  • Firstpage
    53
  • Lastpage
    62
  • Abstract
    Learning to use a software framework and its API (Application Programming Interfaces) can be a major endeavor for novices. To help, we have built a critic to advise the use of an API based on the formal semantics of the API. Specifically, the critic offers advice when the symbolic state of the API client code triggers any API usage rules. To assess to what extent our critic can help solve practical API usage problems and what kinds of API usage rules can be formulated, we manually analyzed 150 discussion threads from the Java Swing forum. We categorize the discussion threads according to how they can be helped by the critic. We find that API problems of the same nature appear repeatedly in the forum, and that API problems of the same nature can be addressed by implementing a new API usage rule for the critic. We characterize the set of discovered API usage rules as a whole. Unlike past empirical studies that focus on answering why frameworks and APIs are hard to learn, ours is the first designed to produce systematic data that have been directly used to build an API support tool.
  • Keywords
    Internet; Java; application program interfaces; software engineering; symbol manipulation; API client code; API critic design; API usage problems; API usage rules; Java Swing forum; application programming interfaces; formal semantics; forum discussions evaluation; online forum discussions; software framework; symbolic execution; Containers; Context; Graphical user interfaces; Java; Layout; Message systems; Programming; APIs; AWT/Swing; Critic; Java; Online Forum Discussions; Software Frameworks; Symbolic Execution;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Program Comprehension (ICPC), 2012 IEEE 20th International Conference on
  • Conference_Location
    Passau
  • ISSN
    1092-8138
  • Print_ISBN
    978-1-4673-1213-4
  • Electronic_ISBN
    1092-8138
  • Type

    conf

  • DOI
    10.1109/ICPC.2012.6240509
  • Filename
    6240509