Demystifying Code Snippets in Code Reviews: A Study of the OpenStack and Qt Communities and A Practitioner Survey
Beiqi Zhang, Liming Fu, Peng Liang, Jiaxin Yu, Chong Wang

TL;DR
This study investigates how code snippets are used in code reviews within OpenStack and Qt communities, revealing their role in improving review effectiveness and providing practical insights for practitioners.
Contribution
It offers the first comprehensive analysis of code snippet practices in code reviews through data mining and a practitioner survey, filling a research gap.
Findings
Code snippets are used to meet specific information needs in reviews.
Using code snippets can facilitate and accelerate the review process.
Practitioners find code snippets helpful in effective communication during reviews.
Abstract
Code review is widely known as one of the best practices for software quality assurance in software development. In a typical code review process, reviewers check the code committed by developers to ensure the quality of the code, during which reviewers and developers would communicate with each other in review comments to exchange necessary information. As a result, understanding the information in review comments is a prerequisite for reviewers and developers to conduct an effective code review. Code snippet, as a special form of code, can be used to convey necessary information in code reviews. For example, reviewers can use code snippets to make suggestions or elaborate their ideas to meet developers' information needs in code reviews. However, little research has focused on the practices of providing code snippets in code reviews. To bridge this gap, we conduct a mixed-methods…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Open Source Software Innovations · Software Engineering Techniques and Practices
