Automatically Mining Negative Code Examples from Software Developer Q & A Forums

Author : Serva, Ryan; Senzer, Zachary; Pollock, Lori; Vijay-Shanker, K.
Booktitle : Fourth International Workshop on Software Mining (SoftMine) with ASE
Date : Nov 2015
Keyword(s) : software mining, developer forums, sentiment analysis
Document Type : In Conference Proceedings

Abstract :

In addition to learning good practices and reusing code from mining code examples, programmers can be supported in their learning and code improvement processes through negative, or poorly written, code examples. While it is challenging to identify negative code examples automatically from within source code, we leverage a key insight that the natural language in questions that include code examples posted on forums can provide adequate clues. In this paper, we describe an automatic sentiment analysis-based technique for mining negative code examples from developer question and answer forums along with a technique to automatically mine negative sentiment indicators commonly used by developers, which are used to drive the sentiment-based technique.

Paper Link