What makes a good code example?: A study of programming Q&A in StackOverflow
Authors:
Top Cited Papers
- 1 September 2012
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10636773,p. 25-34
Abstract
Programmers learning how to use an API or a programming language often rely on code examples to support their learning activities. However, what makes for an effective ode example remains an open question. Finding the haracteristics of the effective examples is essential in improving the appropriateness of these learning aids. To help answer this question we have onducted a qualitative analysis of the questions and answers posted to a programming Q&A web site called StackOverflow. On StackOverflow answers can be voted on, indicating which answers were found helpful by users of the site. By analyzing these well-received answers we identified haracteristics of effective examples. We found that the explanations acompanying examples are as important as the examples themselves. Our findings have implications for the way the API documentation and example set should be developed and evolved as well as the design of the tools assisting the development of these materials.Keywords
This publication has 29 references indexed in Scilit:
- What should developers be aware of? An empirical study on the directives of API documentationEmpirical Software Engineering, 2011
- Obstacles in Using Frameworks and APIs: An Exploratory Study of Programmers' Newsgroup Discussions2011
- Measuring API documentation on the web2011
- Portfolio2011
- Design lessons from the fastest q&a site in the west2011
- Using Data Fusion and Web Mining to Support Feature Location in Software2010
- Cognitive Load Theory2010
- What Makes APIs Hard to Learn? Answers from DevelopersIEEE Software, 2009
- Strathcona example recommendation toolACM SIGSOFT Software Engineering Notes, 2005
- Software reuseACM Computing Surveys, 1992