Most Popular Programming Languages on GitHub by OSS Insight
ossinsight.io
ossinsight.io
Neither of these have anything to do with popularity, which means people actually using it. Here are some better proxies for popularity:
- What people are searching for on search engines (https://trends.google.com/trends/explore?date=2012-07-31%202...)
- How many questions they’re asking on StackOverflow (https://insights.stackoverflow.com/trends?tags=java%2Cc%2B%2...)
- Developer surveys (https://survey.stackoverflow.co/2022/#technology-most-popula...).
But as long as we’re not measuring popularity based on number of results returned by Google, we’re probably fine. (https://blog.nindalf.com/posts/stop-citing-tiobe/)
Developer surveys are good but they typically self-select by audience. JetBrains surveys will over-represent core JB audiences (e.g. Java developers), SO other constituencies (newbies, MS...), etc etc.
I also realise that StackOverflow has a bias towards newbies but that's not a bad thing. It just means that it's a forward looking prediction. The newbies of today are the grizzled veterans of 2030.
People repeat this a lot because it sounds reasonable, but I don't see why it has to be the case.
I would expect popularity to still dominate the SO question signal even if a handful of experts aren't asking questions on SO because they can RTFM. Newcomers to a language seem to ask a lot of questions no matter what, so bad SO signal seems to mean decreasing popularity.
Also, the biggest questions on SO are super basic questions that not even the most intuitive, best documented language can escape. I don't see good evidence for the claim.
> What people are searching for
This is an extremely bad indicator for anything. What people search for does often not correlate to what they choose to use in their projects in the end. Take crypto/web3/blockchain for example. Lots of searches, but not many people who build a blockchain. > How many questions they’re asking on StackOverflow
Not necessarily a good indicator for popularity (although it will play a role). I'd say it's more of an indicator how much developers struggle with a particular language. > Developer surveys
Better, but even those have a strong bias based on their historic audience. StackOverflow is overrepresented with developers from 1-2 languages who have been historically the first/biggest community there.That would, to a large extent, measure the age of a language. The longer it's been around, the more documents on the web.
Apart from already mentioned issues, another reason why this doesn't make sense as a metric is that not all language communities gravitate towards Stack Overflow. Julia, for example, has its own Discourse instance: https://discourse.julialang.org
StackOverflow is no more valid a metric than GitHub. Off the top of my head, Pascal, and all its dialects and variants, comes to mind. Many Pascal users and those of the many dialects that it has, just about never use StackOverFlow. They can use websites that correspond to their dialect or variant (Delphi, Object Pascal, Free Pascal, Oxygene...), books (which there are many), etc...
But, for the newer languages, I do think GitHub is much more representational. Not just the stars, but adding other GitHub metrics, can give a more wholesome picture.
I do think that each language, along with the ecosystem and culture that surrounds it, has to be examined by using various metrics and different sources in order to get a more complete picture. GitHub metrics are telling us a lot, just not the entire picture.
What I find most interesting is how consistent that top 10 list is with the Octoverse data. We have to look much further down the table to see the cool kids like Rust, Go or Lua. While growing very fast there is just so much code out there in Javascript, Typescript, Python, Java, C#, C++ etc that is takes a lot for a language to move up the charts.
That said, while I generally caution against an unhealthy interest in Stars - what the OSS Insight data does a decent job of showing is the activity and interest in the open source languages communities. Rust is clearly incredibly strong there along with things like TypeScript, Go, Python etc. But it's also heartening to see the strength in open source language ecosystems such as Swift, Java & .NET but also some surprises such as PowerShell or the more academic languages like OCAML.
I am happy, however, to see Rust at the top. ^^ Purely just because Rust is named after fungi, which I like.
However, it doesn't speak for the most popular languages but maybe rather to the most active ones? I really doubt that Vlang (as an example) is more popular than Python, PHP etc..
This is not measuring popularity at all.
As Python is a older language, its users may tend to go other places and look to GitHub less. There are many sites, not to mention Python's own, where people can download releases or get information.
There are other GitHub metrics to look as well, such as contributors or forks. In both of these, Python has a huge number in comparison to other languages.
Le sigh. Apart from the obvious UX issue of waiting for this data to load on every page navigation, a little caching might help avoid sending a DDOS at the GitHub API...
Seriously I wish it would gain more traction. I love using F# but fear it's a bit of a dead end of an investment.