6

By recently looking at the TIOBE Programming Community Index (Sep 2012) I noticed the following order:

  1. C
  2. Java
  3. Objective-C
  4. C++
  5. C#
  6. PHP

When looking at the tag frequencies of stackoverflow however, the situation is as follows:

  1. C#
  2. Java
  3. PHP
  4. JS
  5. Android
  6. jquery (JS)
  7. iphone (Objective-C)
  8. C++

(Java takes the lead when accounting for Android tagged posts w/o a Java tag). JavaScript also likely has surpassed PHP in total numbers of programmers?

I realize the tag-frequencies may not be the best indicator, but it is likely a sufficient measure nonetheless.

What am I missing that explains this discrepancy, especially for ANSI C and JavaScript ( #11 in the TIOBE index)?

Links:

Lorenz Lo Sauer
  • 328
  • 1
  • 9

3 Answers3

16

The TIOBE index is based on search engine result numbers. This is influenced by the total number of websites that exist which mention a language, and the index size and algorithms of search engines. Specifically, C may benefit from a lot of old documents.

The tag frequencies on SO are based on questions asked on one specific website (which is not even very old). This is influenced by the composition of the SO community and the attractiveness of alternative resources. Specifically, C# got its top spot probably because the two founders of SO both promoted it on their popular blogs, which have large followings among Microsoft-centric developers.

So basically, the two indexes measure completely different things.

Michael Borgwardt
  • 51,037
  • 13
  • 124
  • 176
5

While C may be the most used programming language or the most popular programming language in general, it's certainly not the most popular language of the last few years. Most people starting out in programming today are exposed to a different set of languages and are likely to end up with something else as their first language. Schools drop C++ and pick up Java for their curriculum, and it's a worldwide trend. People who do websites as a part-time job in high school will likely end up using PHP. And so on.

So most beginners are beginners in something else than C. Hence the beginner questions that make up a substantial part of questions on SO will be asked regarding a different language than C. Even if the same people will end up picking up C later on, they won't be having the same kind of problems they had with their first language or they'll have enough experience to deal with simple issues on their own.

Still, when you weed out tags that are not strictly speaking programming languages, C ends up at a quite respectable 8th place. And looking at the way TIOBE index is made, C gains much as a part of the dreaded C/C++ HR combo. As far as I'm concerned, both C positions in the TIOBE index and on the "SO popularity list" are skewed, only in opposite directions.

scrwtp
  • 4,532
  • 1
  • 24
  • 29
  • -1. I disagree. First paragraph is arguable. Check out Khan Academy and this: http://redmonk.com/sogrady/2012/09/12/language-rankings-9-12/ I was in C for years, converted to JS. – Jack Stone Sep 23 '12 at 23:51
  • 1
    First paragraph states that C has lost its position as a first language to learn. How does citing sources that position C at the 8th place and an online course that uses JS invalidate that assumption? If anything, it reinforces what I wrote. – scrwtp Sep 24 '12 at 00:03
  • Fair enough and yes I agree to that point. My thoughts were to the notion of "most used". Please cite that source. And to "Schools drop C++...Java...trend." Amazingly, Khan academy (John Resig) starts a CS101 in JS and it is impressive. Those were the differences. All the best! – Jack Stone Sep 24 '12 at 00:08
  • @ClintNash That should probably be an answer. Very interesting pointer.... – Lorenz Lo Sauer Sep 24 '12 at 06:39
  • @LoSauer: it was an answer a few hours ago, but it seems it was deleted. – scrwtp Sep 24 '12 at 06:41
  • @ClintNash: I do not state that C is the most used language, I only suspect that it may be. As for the source, the very TIOBE index we are discussing supports this notion. As for the "Java trend", the evidence is anecdotal. Google "Java schools" for Spolsky's influential article, discussion it provoked and a number of questions on both this site and SO that deal with the subject. It's nice that Khan Academy uses JS, so does Stanford, but it's irrelevant to the point of that paragraph. – scrwtp Sep 24 '12 at 07:00
  • @scrwtp It is hard to get an accurate measure on JS usage by programmers, but there is no denying that JavaScript is the most deployed programming language platform with an 'IDE', in the world. – Lorenz Lo Sauer Sep 24 '12 at 20:29
3

The frequency of questions raised at Stack Overflow and similar sites may have some bearing on actual use but there is no strong correlation. Developers using a common language may find answers elsewhere or just not ask questions on Stack Overflow. Meanwhile, developers using a less common language may use Stack Overflow proportionately more.

akton
  • 6,912
  • 31
  • 34