An Exploratory Study of API Usage Examples on the Web

被引:2
作者
Wang, Lijie [1 ]
Zou, Yanzhen
Fang, Lu
Xie, Bing
Yang, Fuqing
机构
[1] Peking Univ, Sch Elect Engn & Comp Sci, Software Inst, Beijing 100871, Peoples R China
来源
2012 19TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC), VOL 1 | 2012年
基金
中国国家自然科学基金;
关键词
empirical study; API; usage examples; web search;
D O I
10.1109/APSEC.2012.122
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Usage examples are helpful for programmers learning to use APIs from third-party frameworks or libraries. There are lots of usage examples scattered in web pages on the Web, such as tutorials, blogs, and forums. A few researches have proposed approaches to leveraging these usage examples to improve programming. However, due to the lack of comprehensive understanding on the current situation of usage examples on the web, the work is still at the very beginning. Many concerns are reserved, for instance, how many usage examples can be found on the Web? how well do such examples support programmers on earth? what factors have impact on these examples' usability? In this paper, we conducted an exploratory study of usage examples on the web, including their distribution, characteristics like content style, correctness, and complexity, as well as their correlations. Through the study, we obtain some insight of how to facilitate utilization of usage examples on the web and what mechanisms could be provided. Possible research directions and problems are proposed at the end.
引用
收藏
页码:396 / 405
页数:10
相关论文
共 50 条
  • [21] Rapido: A Sketching Tool for Web API Designers
    Mitra, Ronnie
    [J]. WWW'15 COMPANION: PROCEEDINGS OF THE 24TH INTERNATIONAL CONFERENCE ON WORLD WIDE WEB, 2015, : 1509 - 1514
  • [22] Easy Web API Development with SPARQL Transformer
    Lisena, Pasquale
    Merono-Penuela, Albert
    Kuhn, Tobias
    Troncy, Raphael
    [J]. SEMANTIC WEB - ISWC 2019, PT II, 2019, 11779 : 454 - 470
  • [23] An Empirical Study of Cloud API Issues
    Li, Zhongwei
    Lu, Qinghua
    Zhu, Liming
    Xu, Xiwei
    Liu, Yue
    Zhang, Weishan
    [J]. IEEE CLOUD COMPUTING, 2018, 5 (02): : 58 - 72
  • [25] Mining API usage change rules for software framework evolution
    Ping YU
    Fei YANG
    Chun CAO
    Hao HU
    Xiaoxing MA
    [J]. ScienceChina(InformationSciences), 2018, 61 (05) : 104 - 106
  • [26] A3: Assisting Android API Migrations Using Code Examples
    Lamothe, Maxime
    Shang, Weiyi
    Chen, Tse-Hsun
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (02) : 417 - 431
  • [27] Web API BLE Communication using .Net Core
    Ferreira, Emanuel
    Paris, Cesar
    Roseiro, Luis
    [J]. 2022 17TH IBERIAN CONFERENCE ON INFORMATION SYSTEMS AND TECHNOLOGIES (CISTI), 2022,
  • [28] Social-aware Web API Recommendation in IoT
    Meissa, Marwa
    Benharzallah, Saber
    Kahloul, Laid
    Kazar, Okba
    [J]. 2020 21ST INTERNATIONAL ARAB CONFERENCE ON INFORMATION TECHNOLOGY (ACIT), 2020,
  • [29] Web Usage Classification and Clustering Approach for Web Search Personalization
    Vijayalakshmi, K.
    Jena, Sudarson
    [J]. 6TH INTERNATIONAL CONFERENCE ON COMPUTER & COMMUNICATION TECHNOLOGY (ICCCT-2015), 2015, : 376 - 383
  • [30] Automatically Generating API Usage Patterns from Natural Language Queries
    Tian, Yanfei
    Wang, Xu
    Sun, Hailong
    Zhao, Yi
    Guo, Chunbo
    Liu, Xudong
    [J]. 2018 25TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2018), 2018, : 59 - 68