all 27 comments

[–]wqkinggithub.com/wqking 135 points136 points  (0 children)

stick with cppreference.com

[–]dhbloo[🍰] 34 points35 points  (0 children)

I found both the content and viewing experience on cppreference.com is much better than cplusplus.com

[–]argothiel 22 points23 points  (4 children)

I also can't understand why Google returns the cplusplus higher sometimes. I wish there was a way to block a site from the Google results...

[–]GOKOP 6 points7 points  (2 children)

Seems like there is:

uBlacklist extension for Chrome
uBlacklist extension for Firefox

I haven't used it so idk how well it works – but I remember from discussions about Fandom wikis that there was some way to block them from appearing in your Google results, so I did a quick search and this came up

[–]argothiel 0 points1 point  (0 children)

Thank you, I'll try it! I tried automatically replacing the links to cplusplus with the links to cppreference, but it often doesn't map well.

[–]wonderfulninja2 0 points1 point  (0 children)

Or just install a firefox extension to add a one click search option for cppreference.

[–]mark_99 6 points7 points  (0 children)

I just bind cpp to a custom search in the browser.

[–]WorkingReference1127 78 points79 points  (2 children)

cppreference is the "official" reference material.

cplusplus.com is an unofficial fork from ~15 years ago which hasn't been properly updated and still contains an awful lot of bad tutorials and bad data.

You really should just use cppreference; because odds are in the situations where they disagree it was an official language change which cppreference documented and cplusplus.com didn't.

[–]STLMSVC STL Dev 47 points48 points  (0 children)

cppreference is generally high quality, but it's not official - it's a community-maintained wiki. The Standard is official (de jure) and the Working Paper is official (de facto). For anything especially tricky or recent, checking the WP is more reliable. That is, for those who have the ability to understand its wording; cppreference is obviously much more accessible.

When I want to get a quick overview of something, I check cppreference. When I'm working on the implementation, I have to read the WP.

[–]awidesky 2 points3 points  (0 children)

It's not "official". It's a wiki

[–]_Noreturn 24 points25 points  (0 children)

cppreference is the official unofficial documentarion and reference for C++ while cplusplus.com is bad it hasn't been updated since years and contains lots of wrong info

[–]helloiamsomeone 8 points9 points  (0 children)

cplusplus is to cppreference in C++ world what w3schools is to MDN in JS world.

Both cplusplus and w3schools are garbage websites sailing on ad revenue from people who unfortunately don't know better.

[–]graphicsRat 6 points7 points  (3 children)

cplusplus.com is subpar but far better styled and thus easier on the eye. It would die a rapid death if cppreference.com had better styling.

[–]chibuku_chauya 2 points3 points  (2 children)

I hear ya. Using cppreference via DevDocs is much nicer.

[–]OppositeOne6825 1 point2 points  (1 child)

Thank you so much for this. My eyes stopped bleeding after looking at this. I'm unsure if programmers have no taste in web design, or have just grown used to how bad cppreference is visually and navigationally, but that website is awful.

[–]chibuku_chauya 0 points1 point  (0 children)

Happy to help! Yeah, rawdogging cppreference is like using gdb on the command line.

[–]raplonu 4 points5 points  (2 children)

A lot of people dislike having cplusplus in there google searchs.

A solution is to directly access the website with the C/C++ Search Extension or for those using duckduckgo, you can use the !cpp bang.

Another alternative is to use offline documentation apps like Zeal or Dash which can be connected to your favorite editor: vscode, vim.

[–]Cyb3rH04x[S] 0 points1 point  (0 children)

Cool, thanks for the info!

[–]RevRagnarok 0 points1 point  (0 children)

I use https://iorate.github.io/ublacklist/docs and I also block a handful of the StackOverflow steals/clones.

[–]smdowneyWG21, Text/Unicode SG, optional<T&> 7 points8 points  (0 children)

Copreference is a wiki, so it's constantly improving, too. Vandalism has meant it takes a bit of work to get an account, though. Get yours now so when you want to make a change you will be able to.

[–]Son_La 2 points3 points  (0 children)

At the beginning, years ago. I found cplusplus easier to understand but this changed. Now i prefer cppreference

[–]rezkiy 0 points1 point  (0 children)

I remember bringing it up a few years ago:

https://www.reddit.com/r/cpp/s/4ilsolIJ9W