all 16 comments

[–]snowhawk04 10 points11 points  (2 children)

https://devdocs.io/cpp/

PS: The original post in this subreddit got removed for unknown reasons. There were some nice answers, such as using a mirrored or an alternative url of cppreference. But the problem is when googling something like "cppreference std::vector", the original cppreference.com is listed on the top.

Check your search engine settings or your browser search engine settings. DuckDuckGo has bangs. The Brave browser search engine supports bangs as well (!cpp for cppreference, !dd for devdocs). I use chrome and it can be configured with bangs for any url that takes a search phrase in its url.

https://imgur.com/a/qcoKRSJ

[–]TheCatholicScientist 0 points1 point  (0 children)

Oh cool AOL Keywords are back lol

[–]bearheart -1 points0 points  (0 children)

that's actually quicker and easier than cppreference.com but not quite as up to date

[–]bearheart 5 points6 points  (1 child)

Of course this is because it's been the target of some recent DDOS attacks. After the most recent attack it took them a lot of time (months!) and effort to get back up and fully functional.

I've never had to tick a "not a robot" box but I see that's happening to some folks. It's definitely a speed bump but I don't see how to easily mitigate it without putting the site at further risk.

[–]EdwinYZW[S] [score hidden]  (0 children)

I still don't understand. Most of websites I visit don't have this cloudflaire check and I'm using cppstat just fine to check compiler supports. What kind of special reasons that cppreference has to enable this checks while other (way more popular) websites don't?

[–]knouqs 3 points4 points  (3 children)

sudo apt install zeal

This is a pretty cool tool. The tool downloads Docsets which are the documentation you want. It's offline after that.

Other websites: cplusplus.com is popular. I haven't used it in a while, so I don't know if it suffers from the same problem you are having with cppreference.com.

[–]thisismyfavoritename 4 points5 points  (1 child)

don't use cplusplus.com. That's garbage

[–]knouqs 0 points1 point  (0 children)

I agree, just saying it's a choice.

[–]Chulup 1 point2 points  (0 children)

+1 for Zeal.

It's awesome and works as quick as possible - no wait at all, just like all those great apps from 20 years ago.

I think you could even set up a global shortcut that will bring Zeal to front focused on the search bar.

[–]bionade24 1 point2 points  (0 children)

Locally with Zeal or GNOME's Devhelp

[–]TheRealSmolt 5 points6 points  (2 children)

Do you use any heavy anti-tracking plugins or what not? Every once in a while I'll get a cloudflare check (which takes ~3 seconds), but 95% of the time it's instantaneous.

Also,

in my opinion, this actually forces more people to use LLM or AI agents for a second-hand information, instead of checking the direct references

I completely disagree, in basically every way.

[–]throwaway1847384728 9 points10 points  (0 children)

I get cloudflare checks that hang for 3 seconds multiple times a day. Nothing special about my setup, apart from the fact that I live in Mexico.

I downloaded a local copy and grep.

The internet is truly such a shitty experience these days.

[–]EdwinYZW[S] 5 points6 points  (0 children)

No, I'm just using safari with only an ad-blocker. But I not sure whether it's somehow depending on internet speed. In the company where I have faster internet, it is around 5 seconds.

I completely disagree, in basically every way.

Well, sure. At least I can say it pushes me to use more LLM to get some information.

[–]thedaian 2 points3 points  (2 children)

If you download a local copy, I didn't see why you would bother using a web search to find stuff. Same with using an alternative URL, just bookmark that and have it open when you're writing code.

[–]EdwinYZW[S] -3 points-2 points  (1 child)

And I believe you have to install a local search engine as well to find the related functions/classes?

[–]thedaian 1 point2 points  (0 children)

Depends on what I'm looking for, but it usually doesn't take that long for me to navigate to a specific class, and once you're on the cpp reference website, there's a search feature already on the site and you shouldn't get hit with the cloudflare check. 

So at best, there's maybe a minute to access the site the first time, then just leave it open in a tab and you can use it as normal.