Adoption and Evolution of Code Style and Best Programming Practices in Open-Source Projects
By: Alvari Kupari, Nasser Giacaman, Valerio Terragni
Following code style conventions in software projects is essential for maintaining overall code quality. Adhering to these conventions improves maintainability, understandability, and extensibility. Additionally, following best practices during software development enhances performance and reduces the likelihood of errors. This paper analyzes 1,036 popular open-source JAVA projects on GITHUB to study how code style and programming practices are adopted and evolve over time, examining their prevalence and the most common violations. Additionally, we study a subset of active repositories on a monthly basis to track changes in adherence to coding standards over time. We found widespread violations across repositories, with Javadoc and Naming violations being the most common. We also found a significant number of violations of the GOOGLE Java Style Guide in categories often missed by modern static analysis tools. Furthermore, repositories claiming to follow code-style practices exhibited slightly higher overall adherence to code-style and best-practices. The results provide valuable insights into the adoption of code style and programming practices, highlighting key areas for improvement in the open-source development community. Furthermore, the paper identifies important lessons learned and suggests future directions for improving code quality in JAVA projects.
Similar Papers
An Empirical Study of Java Code Improvements Based on Stack Overflow Answer Edits
Software Engineering
Improves computer code using online answers.
A Purpose-oriented Study on Open-source Software Commits and Their Impacts on Software Quality
Software Engineering
Improves computer programs by checking code changes.
An Empirical Study on Method-Level Performance Evolution in Open-Source Java Projects
Software Engineering
Finds how code changes affect computer speed.