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

Show parent comments

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]

3

u/rgeFopB57My Nov 25 '22

try Chrome/Edge extension "C/C++ Search Extension", it's awesome

0

u/[deleted] Nov 30 '22

[deleted]

3

u/yungplayz Dec 10 '22

Probably best for you if you don't think too much about who's actually at fault regarding your situation. Or if you do, don't publicly admit having thought about it. At least not before you go abroad forever.

1

u/Akangka Dec 25 '22

Doesn't Baidu offer a similar site search feature too? If you are concerned about Baidu recording your activity, you might be as well as using VPN anyway

3

u/Abbat0r Nov 24 '22

But that’s confusing because it feels like you’re searching for not cpp

7

u/arnitdo Nov 24 '22

That's not how bangs work. It's basically a shortcut to jump to a specific website with additional search queries.

For example, !yt C++ will directly take me to youtube.com/search?q=C++. Jts better than typing the entire site URL out

7

u/Abbat0r Nov 24 '22

‘Twas a joke my guy

0

u/[deleted] Jun 18 '24

[deleted]

1

u/arnitdo Jun 18 '24

Happy to Help!

6

u/markuspeloquin Nov 24 '22

I did something similar in Chrome, but 'cpp' merely adds -site:cplusplus.com' as a search term.

2

u/GLIBG10B 🐧 Gentoo salesman🐧 Nov 24 '22

cppreference has its own search function, but it has been deprecated for being sub-optimal. It can still be accessed using DuckDuckGo via the !cpp bang

1

u/[deleted] Nov 27 '22

No idea you could do this. Thanks for that piece of info.

What are a few other interesting ways you use Google?

1

u/markuspeloquin Nov 28 '22

Specifically I set up a custom Google search cpp that searches for -site:cplusplus.com+cpp+%s. Maybe replicate for c++, but the URL would be ...+c%2b%2b+.... As long as you type the language first, it works.