Example Driven Code Review Explanation

07/24/2022
by   Shadikur Rahman, et al.
0

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. The short review text is often unactionable, which needs further interaction between the reviewer and the developer. The problem becomes more critical 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 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.

READ FULL TEXT
research
03/29/2022

Understanding Code Snippets in Code Reviews: A Preliminary Study of the OpenStack Community

Code review is a mature practice for software quality assurance in softw...
research
07/21/2021

The Factors of Code Reviewing Process to Ensure Software Quality

In the era of revolution, the development of softwares are increasing da...
research
09/15/2023

Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study

Code review is an essential activity for ensuring the quality and mainta...
research
08/17/2021

Are Code Review Processes Influenced by the Genders of the Participants?

Background: Contemporary software development organizations lack diversi...
research
06/04/2021

Automatic Patch Linkage Detection in Code Review Using TextualContent and File Location Features

Context: Contemporary code review tools are a popular choice for softwar...
research
03/06/2018

Code Review Comments: Language Matters

Recent research provides evidence that effective communication in collab...
research
04/04/2019

A fourth explanation to Brooks' Law - The aspect of group developmental psychology

Brooks' Law is often referred to in practice and states that adding manp...

Please sign up or login with your details

Forgot password? Click here to reset