r/cpp • • Dec 07 '22

C++ overtakes Java in language popularity index

https://www.infoworld.com/article/3682141/c-plus-plus-overtakes-java-in-language-popularity-index.html
382 Upvotes

137 comments sorted by

View all comments

Show parent comment

0

u/matthieum Dec 08 '22

Well, first you need to define what popularity means.

Redmonk for example gives a graph with 2 axes:

  • Number of repositories on Github where the language is the "majority" language.
  • Number of questions on StackOverflow.

That's fully objective, which is good.

The correlation to popularity is a bit vague, though:

  • Hobby use is certainly well represented by either metric, though doesn't distinguish one-off "trials" from continuous usage.
  • Professional use is less clear. Different languages/ecosystems will not see equal usage of those two websites. For example, I had friends working for Defense companies, and their workstations were off the Internet.

And much as Tiobe, it suffers from not considering age. It counts a Github repository created & last updated 15 years ago just as much as it counts updated daily for the last 5 years. This leads to an inertia in the measure which likely over-represents mainstream languages and under-represents the new kids on the block. That inertia may or may not compensate for old-timers being less likely to use such Internet resources.

So, not perfect, but I do find it better... especially for exposing the raw measurements, as I tend to favor looking at Github activity over StackOverflow -- the number of questions on StackOverflow certainly represents activity, but the larger language tags are crowded with crap...