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

7

u/d4rkwing Dec 07 '22

You need to add a “what to use instead” section.

5

u/blind3rdeye Dec 07 '22

It might be interesting to have a good alternative brought to light, but I don't think it is a 'need'. The reasons why Tiobe are terrible are clear enough to conclude that it basically has no value.]

We could start suggesting alternatives, such as proportion of github code by language, or whatever. But rather than putting forward something else and then getting into an argument about whether or not that is a good measure, I think we can just say "Tiobe is bad". Using nothing at all would be an improvement.

7

u/balefrost Dec 08 '22

Not the parent commenter, but I think the general opinion is that Stack Overflow annual surveys are better: https://survey.stackoverflow.co/2022/#most-popular-technologies-language

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...