[Paper Review] Open Source Development Around the World: A Comparative Study
This study analyzes 2,648 open source projects from 20 countries, using GitHub data and BetterCodeHub to assess project popularity, programming language use, and code quality. It finds a strong correlation between national GDP and open source project volume, with China leading in project count, and identifies widespread opportunities for improving test coverage and code simplicity across all countries.
Open source software has an increasing importance in our modern society, providing basic services to other software systems and also supporting the rapid development of a variety of end-user applications. Recently, world-wide code sharing platforms, like GitHub, are also contributing to open source's growth. However, little is known on how this growth is distributed around the world and about the characteristics of the projects developed in different countries. In this article, we provide a characterization of 2,648 open source projects developed in 20 countries. We reveal the number of projects per country, the popularity and programming language of each country's project and also show how the number of projects in a country correlates to its GDP. Finally, we assess the maintainability and internal code quality of the studied projects, using a tool called BetterCodeHub.
Motivation & Objective
- To understand the global distribution of open source software development across countries.
- To examine how national GDP correlates with the number of open source projects.
- To characterize the programming languages used in projects per country.
- To evaluate the internal code quality and maintainability of projects using automated metrics.
- To inform policymakers and organizations on strategies to support open source development in their regions.
Proposed method
- The study selected the top 10,000 GitHub projects by star count as of November 2017 to ensure popularity.
- Project ownership was mapped to country using GitHub account location metadata, with manual validation for ambiguous or missing entries.
- Projects were filtered to exclude non-software artifacts using cloc to measure lines of code.
- The remaining 5,388 projects were assigned to 77 countries, with the United States excluded to enable consistent maintainability analysis.
- BetterCodeHub was used to evaluate 10 code quality guidelines, including Separation of Concerns, Clean Code, Automated Tests, and Short Units.
- Statistical correlation was computed between national GDP and project counts, using IMF data for the most recent year available.
Experimental results
Research questions
- RQ1Is there a significant correlation between a country’s GDP and the number of open source projects it produces?
- RQ2Which programming languages are most commonly used in open source projects per country?
- RQ3How does the distribution of project ownership (domestic vs. international) vary across countries?
- RQ4What is the overall level of code quality and maintainability in open source projects across different nations?
- RQ5Are there notable differences in code quality metrics between countries, or are improvements needed uniformly?
Key findings
- After removing U.S. projects, China led with 754 open source projects, followed by the United Kingdom (336) and Germany (236).
- A strong positive correlation was found between a country’s GDP and the number of open source projects it produces (R² = 0.75).
- JavaScript and Java were the most popular programming languages globally, though languages like Objective-C, Swift, and Go showed strong regional presence.
- Domestic projects—where all core developers are from the same country—were the most common category in 19 out of 20 countries.
- Only 26% of projects met the automated tests guideline, and 21% failed the short units guideline, indicating major opportunities for improvement in test coverage and code simplicity.
- Maintainability scores showed little variation across countries, suggesting that code quality challenges are widespread and not isolated to specific regions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.