A Systematic Literature Review on the Impact of Formatting Elements on Code Legibility

08/25/2022
by   Delano Oliveira, et al.
0

Context: Software programs can be written in different but functionally equivalent ways. Even though previous research has compared specific formatting elements to find out which alternatives affect code legibility, seeing the bigger picture of what makes code more or less legible is challenging. Goal: We aim to find which formatting elements have been investigated in empirical studies and which ones were found to be more legible for human subjects. Method: We conduct a systematic literature review and identify 14 papers that directly compare alternative formatting elements. We analyze and organize these formatting elements using a card sorting method. Results: We identify 14 formatting elements (e.g., indentation) and 33 levels of formatting elements (e.g., two-space indentation), which are about formatting styles, spacing, block delimiters, long or complex code lines, and word boundary styles. While some levels were found to be statistically better than other equivalent ones in terms of code legibility, e.g., appropriate use of indentation with blocks, others were not, e.g., formatting layout. For identifier style, we found divergent results, where one study found a significant difference in favor of camel case, but another study found a positive result in favor of snake case. Conclusion: The number of identified papers, some of which are outdated, and the many null and contradictory results emphasize the relative lack of work in this area and underline the importance of more research. There is much to be understood about how formatting elements influence code legibility before the creation of guidelines and automated aids to help developers make their code more legible.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/16/2021

A Systematic Literature Review and Taxonomy of Modern Code Review

Modern Code Review (MCR) is a widely known practice of software quality ...
research
10/02/2021

Evaluating Code Readability and Legibility: An Examination of Human-centric Studies

Reading code is an essential activity in software maintenance and evolut...
research
12/13/2020

Predicting Software Effort from Use Case Points: A Systematic Review

Context: Predicting software project effort from Use Case Points (UCP) m...
research
03/12/2020

Analyzing the Impact of Automated User Assistance Systems: A Systematic Review

Context: User assistance is generally defined as the guided assistance t...
research
01/21/2022

A Systematic Literature Review of Empirical Research on Quality Requirements

Quality requirements deal with how well a product should perform the int...
research
04/19/2020

Code Review in the Classroom

This paper presents a case study to examine the affinity of the code rev...
research
02/03/2022

Best Practices and Scoring System on Reviewing A.I. based Medical Imaging Papers: Part 1 Classification

With the recent advances in A.I. methodologies and their application to ...

Please sign up or login with your details

Forgot password? Click here to reset