Replication Data

What are developers talking about? An analysis of topics and trends in Stack Overflow

Anton Barua, Stephen W. Thomas, and Ahmed E. Hassan
Empirical Software Engineering, 2012


Programming question and answer (Q and A) websites, such as Stack Overflow, leverage the knowledge and expertise of users to provide answers to technical questions. Over time, these websites turn into repositories of software engineering knowledge. Such knowledge repositories can be invaluable for gaining insight into the use of specific technologies and the trends of developer discussions. Previous work has focused on analyzing the user activities or the social interactions in Q and A websites. However, analyzing the actual textual content of these websites can help the software engineering community to better understand the thoughts and needs of developers. In the article, we present a methodology to analyze the textual content of Stack Overflow discussions. We use latent Dirichlet allocation (LDA), a statistical topic modeling technique, to automatically discover the main topics present in developer discussions. We analyze these discovered topics, as well as their relationships and trends over time, to gain insights into the development community. Our analysis allows us to make a number of interesting observations, including: the topics of interest to developers range widely from jobs to version control systems to C# syntax; questions in some topics lead to discussions in other topics; and the topics gaining the most popularity over time are web development (especially jQuery), mobile applications (especially Android), Git, and MySQL.


If you found this replication package helpful or used it for your own project, please consider citing our original paper:

   author={Anton Barua and Stephen W. Thomas and Ahmed E. Hassan},
   journal={Empirical Software Engineering},
   title={What are developers talking about? An analysis of topics and trends in Stack Overflow},
   pages={To appear},


The preprint can be found here.
The publisher's webpage can be found here.

Data and Scripts

Stack Overflow posts, topics, trends, and commands (1.7GB). We include a README file to describe the contents.