Can Github Tell Us What Programming Language to Learn?

Keith Connolly
5 min readMar 30, 2022

Github is one of the primary sources of version control, source control, as well as a great place for open source projects. Using this popularity can we make some rough statements about language popularity, growth, and choice? Simply put, yes, but there’s always something to learn.

In this breakdown we’re going to explore what language you might choose to learn if you based your decision on popularity, ease of use, and community activity.

Our earliest datapoints are in 2011, and our latest are up to the end of 2021, I removed all 2022 data since I only want data from completed years and we ‘re only a few months into 2022.

Before we start exploring the data, we have a few questions we want to ask.

  1. What are the most popular languages overall?
  2. What were the most popular languages at the earliest data point?
  3. What were the most popular languages at the most recent data point?
  4. What languages have grown the fastest?
  5. What languages have stayed high in popularity the longest?

All resulting in one overarching question:
If we had to pick a language to learn which one should we do?

What are the most popular languages overall?

We can assume from this that the over-all popularity of Javascript by repo count is very important.

While we cannot be sure of repo count at earlier years due to the lack of quarter and yearly repo data we can still tell that Javascript simply has a lot of code moving around.

Looking at the second and third charts we can see Javascript is first place for both other metrics (over all time).

An interesting result is Python, which is second place in PRs and Issues but a much lower number of repos, less than half, of Javascript.

Does this mean Python is more open, collaborative language than Javascript?
Part of this can be attributed to Python becoming popular in the data science and machine learning fields in recent years.

What were the most popular languages at the earliest data point?

At the earliest point of our data Ruby is near the top of our language list in terms of both PRs and Issues. At the time Ruby as well as PHP were very popular languages and were used primarily for web development. Which was booming in 2011. We can see Javascript AND python still in the top 5 during this period but they are both much less popular than today.

What were the most popular languages at the most recent data point?

Currently 2021 shows us that Python has actually overtaken javascript for popularity. While not much has experienced the meteoric rise Javascript has we can also see that Javascript has cooled down enough for Python to overtake it.

What languages have grown the fastest? What languages have stayed high in popularity the longest?

We can see on these charts just how extreme Javascripts rise and apparent fall have been. Python has ridden the close second place for a long time. And now we finally see python gaining enough and Javascript losing enough momentum for their positions to switch. This being said the stickiness of Java is commendable, though it’s to be expected for a language where the JVM (Java Virtual Machine) has had well over a billion dollars of investment in it.

If we had to pick a language to learn which one should we do?

Taking in all the data we have seen and exposed, we can see that Javascript is still a mainstay in our development lifecycle, if it’s not NODE it’s something along the lines of REACT or NEXTJS. While Python having become the de facto tool of data scientists and data engineers of all shapes and sizes (Tesla, CommaAI, Google, etc.) is one likely point of growth making Python the now most popular choice.

Javascript has had the most popular moniker for some time and would definitely be a solid choice for a new engineer due to the maturity of the tooling, the language as a whole, and the ability to use the same language cross stack as well as in the browser.

Python would be my second choice, not just due to the use in data science but as time goes it it’s apparent Python will continue to grow. With the shift to Python 3 (finally!) the package ecosystem is slowly growing to be more and more mature. I can easily see pythons popularity to continue to grow.

In short, Python is my top recommendation for a new engineer but Javascript is a very close second.

--

--