The problem
Stack Overflow is one of the main places developers learn how to use libraries, APIs, and programming concepts. Finding the right answer often means reading through many results, which costs time and money.
Earlier tools such as Google Code Search, MAPO, and Strathcona re-rank code snippets, but each is limited to certain projects, APIs, languages, or IDEs.
How SCoR works
SCoR (Stack Overflow Code Recommender) is a desktop application with a graphical interface. It takes the user's query and a few other inputs, then:
- collects Stack Overflow results in real time,
- extracts the code snippets and other features from all the answers,
- ranks the code snippets based on those features,
- clusters similar answers into groups, and
- recommends clusters of refined code snippets, with related comments where they exist.
Result
Initial evaluations showed a considerable reduction in the effort developers spent searching Stack Overflow results.