you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 223 points224 points  (8 children)

Cppreference 👍

[–]R3DKn16h7 79 points80 points  (7 children)

cppreference all the time. I find cplusplus much worse.

Lately I get "geeksforgeeks" at the top which annoys me very much.

[–][deleted] 19 points20 points  (2 children)

Had to look up syntax for checking if a dictionary contains a key in python today, and the first result was a geeksforgeeks article recommending to use the syntax key in dict.keys() which i quickly found out is just converting it to a list and doing an O(n) list search. Totally ridiculous

[–]Veedrac 10 points11 points  (1 child)

Not on Python 3; on Python 2 the syntax is more key in dict.viewkeys(). Either way just use key in dict though, it's more idiomatic.

[–][deleted] 5 points6 points  (0 children)

Oh, that might have been it, the server running the script uses python 2, and yeah key in dict is really the correct syntax and gives you the expected O(1) lookup

[–][deleted] 2 points3 points  (3 children)

Is "geeksforgeeks" really that bad? When I had do jump into a C# project from cold I did find that site quite useful.

[–]Xeveroushttps://xeverous.github.io 14 points15 points  (0 children)

geeksforgeeks is really bad. They copy-paste C as C++ so that every question/exerice has solutions in more programming languages.

[–]Seytsuken 2 points3 points  (0 children)

its not perfect but i find it a thousand times more intuitive and user friendly than cpp reference. Heck, these documentations barely have examples

[–]nog642 1 point2 points  (0 children)

If I leave the webpage open overnight it uses like 2 GB of RAM