Example Driven Code Review Explanation
Background: Code reviewing is an essential part of software development to ensure software quality. However, the abundance of review tasks and the intensity of the workload for reviewers negatively impact the quality of the reviews and result in short and ineffective descriptions. The short review comments are written in a natural language and are often unactionable, which needs further interaction between the reviewer and the developer. The problem becomes more significant in dynamic teams and in the case of new team members who are less familiar with their reviewers and perspectives.
Aims: We are proposing the Example Driven Review Explanation (EDRE) method to facilitate the code review process by adding additional explanations through examples. EDRE recommends similar code reviews as examples to further explain a review and help a developer to understand the received reviews with less communication overhead.
Method: Through an empirical study in an industrial setting and by analyzing 3,722 code reviews across three open-source projects, we compared five methods of data retrieval, text classification, and text recommendation.
Results: EDRE using TF-IDF word embedding along with an SVM classifier can provide practical examples for each code review with 92% F-score and 90% Accuracy. Conclusions: The example-based explanation is an established method for assisting experts in explaining decisions. EDRE was developed based on the same philosophy and can accurately provide a set of context-specific examples to facilitate the code review process in software teams.
Fri 23 SepDisplayed time zone: Athens change
11:00 - 12:30 | Session 4B - Code Review & DefectsESEM Technical Papers / ESEM Emerging Results and Vision Papers / ESEM Journal-First Papers at Sonck Chair(s): Per Runeson Lund University | ||
11:00 20mFull-paper | To What Extent Cognitive-Driven Development Improves Code Readability? ESEM Technical Papers Leonardo Barbosa UFPA, Victor Santiago UFPA, Alberto de Souza Zup Innovation, Gustavo Pinto Federal University of Pará (UFPA) and Zup Innovation | ||
11:20 20mFull-paper | Only Time Will Tell: Modelling Information Diffusion in Code Review with Time-Varying Hypergraphs ESEM Technical Papers Michael Dorner Blekinge Institute of Technology, Darja Šmite Blekinge Institute of Technology, Daniel Mendez Blekinge Institute of Technology, Krzysztof Wnuk Blekinge Institute of Technology , Jacek Czerwonka Developer Services, Microsoft DOI Pre-print | ||
11:40 20mFull-paper | MEG: Multi-objective Ensemble Generation for Software Defect Prediction ESEM Technical Papers Rebecca Moussa University College London, Giovani Guizzo University College London, Federica Sarro University College London | ||
12:00 15mFull-paper | Towards a taxonomy of code review smells ESEM Journal-First Papers | ||
12:15 15mVision and Emerging Results | Example Driven Code Review Explanation ESEM Emerging Results and Vision Papers |