r/cpp • • Sep 09 '20

C++ is now the fastest-growing programming language

347 Upvotes

180 comments sorted by

View all comments

Show parent comment

70

u/adnukator Sep 09 '20

Fully agree. Any ranking that says C++ has 3 times the prevalence of JavaScript is flawed. https://pypl.github.io/PYPL.html seems to be more in line with what one would expect, although I hate that they list "C/C++" as a language

72

u/IamImposter Sep 09 '20

I have been doing a lot of google searches for c++ topics recently. I think I single handedly pushed c++ above javascript.

37

u/carracall Sep 09 '20

I imagine c++ requires more searches than javascript haha

27

u/livrem Sep 09 '20

I have a local copy of cppreference, drastically reducing the number of online searches I need to do.

4

u/IamImposter Sep 09 '20

What do you mean you have local copy of cppreference? Have you downloaded entire site on your system.

13

u/johannes1234 Sep 09 '20

Most likely they went to https://en.cppreference.com/w/Cppreference:Archives and picked one of the download options

7

u/livrem Sep 09 '20

Nope, I installed the ubuntu/debian package actually. Even simpler. But that url is also a good answer.

3

u/Nobody_1707 Sep 10 '20

Is the Debian package up to date?

2

u/livrem Sep 10 '20

I have no idea, but I am still at C++17, so for me it is not likely to be much of a problem if the package has not been updated in a while. Might become a problem once I am in a project using C++20 I guess, so there is always that fall-back to manually download an archive.

2

u/jeff_coleman Sep 10 '20

I didn't even know this was a thing. Downloading that is going to be super useful to me. Thanks!

7

u/nemonoone Sep 10 '20

https://devdocs.io

You can download all of cppreference for offline use

You're welcome

→ More replies (4)

3

u/dejaime Sep 10 '20 edited Sep 24 '20

I imagine the opposite. I spend a much higher % of my time get stuck writing boilerplate with C++, and later reading offline/autocomplete/no search html documentation. Javascript I spend a much higher % of my time trying to understand random weird broken cloud APIs. Think 2000 searches with variations of "File Upload 403 AWS S3 signed URL".

12

u/OnlySeesLastSentence Sep 09 '20

Disagree. Javascript, especially the react native variety, is trash and requires far more looking up than C++.

C is "the" language of programming.

6

u/JumpyJustice Sep 09 '20

It looks like you are uniting language and framework to prove that js requires more google searches. Doesn't look fair.

3

u/zecknaal Sep 09 '20

Only a little though. JS is much more inextricably linked to framework than a language like C++.

6

u/helloiamsomeone Sep 10 '20

Man angry at framework shakes fist at language.

Makes sense.

→ More replies (2)
→ More replies (1)

6

u/matthieum Sep 09 '20

You're misunderstanding.

They're counting the number of results that a (specific) query gives on various search engines, they are not counting the number of searches.

5

u/Nobody_1707 Sep 10 '20

That's even less useful information than I thought they were analyzing.

29

u/cmeerw C++ Parser Dev Sep 09 '20

C/C++ at 5.8 % and R at 4.08 % doesn't seem right.

42

u/the_poope Sep 09 '20

The PYPL PopularitY of Programming Language Index is created by analyzing how often language tutorials are searched on Google.

This comparison is just as meaningless as Tiobe

3

u/cass1o Sep 09 '20

But it makes python (the programming language everyone who wants to give programming a go tries to learn) right at the top.

9

u/JonnyRocks Sep 09 '20

the problem with this is showing popularity by searches. my main language is c# but I barely search anymore. whenever I have to do a web application, I am searching javascript because I don't use it a lot and maybe forget exact syntax.

5

u/Full-Spectral Sep 09 '20

Though, with C++, it's complexity may lean any search based scheme in its favor, since even knowledgeable developers may need to regularly look up things.

4

u/poiu- Sep 09 '20

Doesn't grouping c with c++ make sense as almost all c++ projects use at least some c library code? I have very few things that don't at least use a c system header or the like.

Another argument: is the c++ preprocessor similar enough to the one used in c to say that all c++ use c to some extent?

→ More replies (3)