Live API Documentation

被引:171
作者
Subramanian, Siddharth [1 ]
Inozemtseva, Laura [1 ]
Holmes, Reid [1 ]
机构
[1] Univ Waterloo, Sch Comp Sci, Waterloo, ON, Canada
来源
36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2014) | 2014年
关键词
Source code examples; source code search; documentation; TRACEABILITY LINKS; CODE;
D O I
10.1145/2568225.2568313
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Application Programming Interfaces (APIs) provide powerful abstraction mechanisms that enable complex functionality to be used by client programs. However, this abstraction does not come for free: understanding how to use an API can be difficult. While API documentation can help, it is often insufficient on its own. Online sites like Stack Overflow and Github Gists have grown to fill the gap between traditional API documentation and more example-based resources. Unfortunately, these two important classes of documentation are independent. In this paper we describe an iterative, deductive method of linking source code examples to API documentation. We also present an implementation of this method, called Baker, that is highly precise (0.97) and supports both Java and JavaScript. Baker can be used to enhance traditional API documentation with up-to-date source code examples; it can also be used to incorporate links to the API documentation into the code snippets that use the API.
引用
收藏
页码:643 / 652
页数:10
相关论文
共 18 条
[1]   Recovering traceability links between code and documentation [J].
Antoniol, G ;
Canfora, G ;
Casazza, G ;
De Lucia, A ;
Merlo, E .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2002, 28 (10) :970-983
[2]  
Bacchelli A., 2010, P 32 ACM IEEE INT C, P375
[3]  
Bacchelli A., 2013, WORK C MIN SOFTW REP
[4]  
Chen X., 2010, IEEE/ACM International Conference on Automated Software Engineering, P505
[5]  
Chris L. G. Parnin, 2002, GITCS1205
[6]  
Dagenais B., 2008, FSE, P203
[7]  
Dagenais B., 2010, P 18 INT S FDN SOFTW, P127
[8]  
Dagenais B, 2012, PROC INT CONF SOFTW, P47, DOI 10.1109/ICSE.2012.6227207
[9]  
Dagenais B, 2008, OOPSLA 2008 NASHVILLE, CONFERENCE PROCEEDINGS, P313
[10]   Software Bertillonage Determining the provenance of software development artifacts [J].
Davies, Julius ;
German, Daniel M. ;
Godfrey, Michael W. ;
Hindle, Abram .
EMPIRICAL SOFTWARE ENGINEERING, 2013, 18 (06) :1195-1237