I looked at the TIOBE index today, as I do every so often, as most of the software pros I know do every so often. It purports to measure the popularity of the worldprogramming languages, and its popularity-over-time chart tells a simple story: Java and C are, and have been since time immemorial, by some distance the co-kings of language.

But wait. Not so fast. The rival &PYPL Index& (PopularitY of Programming Languages) says that Python and Java are co-kings, and C (which is lumped in with C++, surprisingly) is way down the list. Whatgoing on here

Whatgoing on is that the two indexes have very different methodologies … although what their methodologies have in common is both are very questionable, if the objective is to measure the popularity of programming languages. TIOBE measures the sheer quantity of search engine hits. PYPL measures how often language tutorials are Googled.

Both are bad measures. We can expect the availability of online resources to be an extremely lagging indicator; a once-dominant dead language would probably still have millions of relict web pages devoted to it, zombie sites and blog posts unread for years. And the frequency of tutorial searches will be very heavily biased towards languages taught en masse to students. Thatnot a meaningful measure of which languages are actually in use by practitioners.

There are lots of weird anomalies when you look harder at the numbers. According to TIOBE, last C went from its all-time lowest rating to Programming Language Of The Year in five months. I can buy that C has had a resurgence in embedded systems. But I can also easily envision this being an artifact of a highly imperfect measure.

The more flagrant anomaly, though, in both of those measures, is the relative performance of Objective-C and Swift, the two languages used to write native iOS apps. I can certainly believe that, combined, they have recently seen a decline in the face of the popularity of cross-platform alternatives such as Xamarin and React Native. But I have a lot of trouble believing that, after four years of Apple pushing Swift — to my mind, an objectively far superior language — Objective-C is still more popular / widely used. In my day job I deal with a lot of iOS/tvOS/watchOS apps, and interview a lot of iOS developers. Itextremely rare to find someone who hasn&t already moved from Objective-C to Swift.

But hey, anecdotes are not data, right If the only available measures conflict with my own personal experience, I should probably conclude that the latter is tainted by selection bias. And I&d be perfectly willing to do that …

… except there is another measure of programming language popularity out there. I&m referring to GitHubannual reports of the fifteen most popular programming languages on its platform. Those numbers are basically a perfect match for my own experience … and they are way disjoint from the claims of both both TIOBE and PYPL.

According to GitHub2016 and 2017 reports, the worldmost popular programming language, by a considerable distance, is Javascript. Python is second. Java is third, and Ruby a close fourth. This is in stark contrast to TIOBE, which has Java and C, then a big gap, then Python and C++ (Javascript is eighth) — and also to PYPL, which claims the order is: Python and Java, a huge gap, then Javascript and PHP.

Obviously the GitHub numbers are not representative of the entire field either; their sample size is very large, but only considers open-source projects. But I note that GitHub is the only measure which counts Swift as more popular than Objective-C. That makes it a lot more convincing, to me … but its open-source selection bias means itstill far from definitive.

These statistics do actually matter, beyond being an entertaining curiosity and/or snapshot of the industry. Languages aren&t all-important, but they&re not irrelevant either. People determine what languages to study, and sometimes even what jobs to seek and accept, based on their popularity and their (related) projected future value. So ita little upsetting that these three measures are so starkly, radically different. Sadly, though, we seem to still be stuck with tea leaves rather than hard numbers.

Write comment (91 Comments)
The regional gap in AI adoptionThe regional gap in AI adoption

To better understand how artificial intelligence (AI) is being adopted differently by nations around the world, we sat down with Virtusa's Executive Vice President of Global Digital Solutions, Frank Palermo.

1. Is there much disparity between different global regions’ approaches to robotics, artificial intelligence and autonomous vehicles or, i

Write comment (93 Comments)
Photo of The Atomium

The heritage industry is an inherently conservative business, trading as it does in the past, and as such it can be wary of change, and relatively slow to innovate. However, faced with a new generation of visitors who've grown up using smartphones, computers and various other gadgets demanding an interactive experience rather than just looking at

Write comment (99 Comments)
iPhone XS and iPhone XS Max reportedly hit with a charging bugiPhone XS and iPhone XS Max reportedly hit with a charging bug

The brand new iPhone XS and iPhone XS Max handsets have only been in customers' hands for a week, but already a problem has emerged – namely that some models don't start charging when plugged into the mains if the screen is off when they're connected.

At the moment the issue is only anecdotal, but based on forum posts and YouTube videos it seems to

Write comment (93 Comments)

All 24 golfers are now on the course at the 2018 Ryder Cup and we still don't know which way this year's contest is going to swing. It's time for the Day 3 singles and we'll tell you how to live stream the Ryder Cup finale no matter where you live - it's even FREE to live stream if you're in the US.

2018 Ryder Cup - where and when

The Ryder Cup is

Write comment (100 Comments)
Still from the movie War Games

Main image: How far are we from a future where battlefields where Terminator-style autonomous robots do the fighting instead of human soldiers 

It is often said that nothing ages quite so quickly as yesterday’s vision of tomorrow.

In the mid-20th century, consumed by the aftermath of two world wars, the public was sold a chrome-plated vision of the

Write comment (93 Comments)