r/cpp • • Nov 23 '22

Sites like GeeksForGeeks really hurt C++ learning

It's so annoying to see these sites pop up on literally 90% of google search results whenever it is c++ related(especially GeeksForGeeks). Their articles are mostly poorly written and often incorrect. Their code examples are full of memory leaks and undefined behaviors.
Edit: I posted this hoping that I could get a way to filter out these sites from the search results. This thread is so helpful to me😙

1.1k Upvotes

221 comments sorted by

View all comments

435

u/SkoomaDentist Antimodern C++, Embedded, Audio Nov 23 '22

GeeksForGeeks and cplusplus.com really should be taken offline for good.

343

u/SpacemanLost Nov 23 '22

cplusplus.com

for a moment there I was confusing it with cppreference.com

268

u/playmer Nov 23 '22

Exactly the problem :(

154

u/MammothInsurance Nov 23 '22

The amount of times I was googling something from the standard library and got cplusplus as the first result instead of cppreference is infuriating.

71

u/tV4Ybxw8 Nov 24 '22

I added a cppreference as a search shortcut on firefox, so every time i type @cpp it searches just cppreference.

76

u/arnitdo Nov 24 '22

DuckDuckGo has the !cpp shortcut bang for directly jumping to the cppref page. What a lifesaver

0

u/[deleted] Nov 24 '22

[deleted]

→ More replies (4)
→ More replies (5)
→ More replies (4)

29

u/Claytorpedo Nov 24 '22 edited Nov 24 '22

If using Google, use the "Block this site" feature on the page results. Blacklisting sites like cplusplus is great for my searching experience.

edit: it's been so long I forgot that this isn't a feature but an add-on I have! uBlacklist on firefox.

→ More replies (1)

45

u/AlexReinkingYale Nov 24 '22

It's like w3schools vs MDN

→ More replies (1)

33

u/cballowe Nov 23 '22

There's some amount of "if I know what I'm looking for, I always get cppreference" but if I don't know, I get sites that SEO around questions.

I suspect in some cases the bigger challenge is having a better answer that words things in the terms that the person asking is using.

Also, a reference site tends to not be great at teaching - they're different goals. Textbooks are organized around lessons and goals rather than indexed by terms. (Think dictionary and thesaurus vs coursework on creative writing or literature - the meaning of Romeo and Juliet vs the definition of "wherefore")

9

u/SeaArePee Nov 24 '22

Isn't cppreference considered as a good resource?

8

u/Spiderboydk Hobbyist Nov 24 '22

Yes it is.

5

u/SkoomaDentist Antimodern C++, Embedded, Audio Nov 23 '22

I rest my case.

→ More replies (2)

49

u/FlyingRhenquest Nov 23 '22

QOL on google would be so much better if we could remove specific sites from our search results.

51

u/dodheim Nov 23 '22

<search terms> -site:cplusplus.com -site:geeksforgeeks.com

It'd be nice if you could put it in settings instead of the query string, but it's easy to automate at least.

15

u/afiefh Nov 24 '22

I wish Google would allow me to have sites I never want to see in my search results. Looking at you, pinterest.

10

u/FriedRiceAndMath Nov 24 '22

A public service reminder that Google’s customer base buys advertising. Their wishes carry some weight, however little.

You (and I) are part of Google’s product line, an entirely different category.

38

u/neboob Nov 23 '22

I use a chrome extension called “Personal Blocklist” to filter out all those whack sites

11

u/jharmer95 Nov 24 '22

If you use uBlock Origin, you can filter out search results. This site can help generate the filter for you to copy and paste.

→ More replies (3)

35

u/[deleted] Nov 24 '22 edited Nov 24 '22

[removed] — view removed comment

14

u/matthieum Nov 24 '22

It used to be fairly unreliable. I do believe they improved quality over time, but since cppreference has been reliable I see no reason to visit any other...

11

u/JVApen Clever is an insult, not a compliment. - T. Winters Nov 24 '22

Never found anything wrong with it myself, though I have colleagues that claim the information on it ain't always correct.

→ More replies (2)

26

u/johannes1971 Nov 24 '22

I like the layout of cplusplus.com better though. The way it has each C++ version in a separate tab is much more readable than the way cppreference does it.

13

u/SoerenNissen Nov 24 '22

I practically learned this language using cplusplus.com (and university, but frankly more from the site) back when C++11 was the Hot New Thing

It's unfortunate it hasn't kept up with the new standards.

That being said - if you create an account on cppreference, you can specify which standard it should be showing you (still not as good as having them all available as tabs because who needs another site account, but it's there)

→ More replies (2)
→ More replies (5)