Explore our analysis of the 100 most popular languages on GitHub and find out what is worth learning.
A QUICK SUMMARY – FOR THE BUSY ONES
TABLE OF CONTENTS
A few weeks ago I googled ‘100 most popular languages on GitHub‘ and I found nothing relevant, only sites that were outdated, or contained a list of just a few languages. That wasn’t what I was looking for, I needed a more in-depth analysis so I decided to do one myself.
Just for the record, here are a few unsatisfying examples of my Google search results:
On the other hand, during my own research I took advantage of the GitHub API, which was quite handy and easy to use. The code, the tables and the results are available on GitHub here.
Using these scripts, it’s possible to do similar research at any time in the future, assuming GitHub API doesn’t change their interface.
When doing the research, I stumbled upon some minor problems.
First of all, GitHub API bans a user or IP for about 3 minutes after doing about 20 requests. So I used an authenticated API instead of the public API (the interface is the same but it’s needed to send a user token) because for the authenticated API the limit is a bit larger. Moreover, I implemented automatic waiting until the API is available, so single script running downloaded the data I needed (a single rank of languages) in about an hour.
Second, if a language name contains a space e.g. ‘vim script’, it’s needed to quote (‘”’) its name, when passing to the GitHub API so when doing a request with cURL or Postman, a quote can be inserted manually and when doing a request using JavaScript, ‘JSON.stringify’ can be used.
The third issue concerned the entire GitHub, that once went down but for less than one minute.
Among the most popular languages on GitHub, Swift is rapidly replacing Objective-C, Typescript popularity is also very rapidly growing, and a bit slower, languages like Vue, Go, Kotlin and C++ are increasing in popularity. On the other hand, languages like Clojure, Scala, Perl, and Java are decreasing in popularity, though Java is still in the top 3 in each ranking.
In the case of Vue, there are two separate concepts:
There are many ways to interpret the results of my research. For example, we can compare the most popular languages on GitHub by relative popularity using repo stars number:
1. Languages with many repos but few stars and few repos with many stars:
2. Languages with relatively few repos and few stars or many repos and many stars:
3. Languages with many repos and few stars, few repos and many stars, and many repos and very many stars:
4. Languages with relatively few repos and few stars, many repos and many stars, and few repos and very many stars:
As a bonus, take a look at the most starred repositories for each of the languages which were ranked in the top 20 in any rank.
I hope you’ve found some useful information in this article and maybe it will make the decision of which web app development language you should learn in 2019 little easier.
Of course, in each ranking, JavaScript developers tend to dominate the GitHub community, but the technology is not designed to do all the programming. Sometimes you need a low-level language with decent performance or static typing.
Another time you may need a paradigm which isn’t offered by JS like declarative, logical, mathematical, generic, metaprogramming or visual or is only partially offered by JS like concurrent or even a paradigm supported by JS but whose support is better in other languages.
Moreover, it’s worth noting some of the ranked languages like HTML, CSS, Markdown or XML aren’t truly programming languages because they just let you write down some data or visual style.
However, an interesting tidbit: I heard CSS is Turing complete, so in fact, it’s one of the programming languages, but never try to translate a sophisticated logic from JS to CSS.
Happy coding in these 100 most popular languages on GitHub!
Our promise
Every year, Brainhub helps 750,000+ founders, leaders and software engineers make smart tech decisions. We earn that trust by openly sharing our insights based on practical software engineering experience.
Authors
Read next
Popular this month