Re:My most downvoted StackOverflow answer
by nuancebydefault on Thursday September 05, 2024 @03:29PM
(#41459712)
In the previous place I worked, if I asked something about a C++ feature, they would point me to cppreference.com. Although it is a good reference work, to me it was always horrible to learn anything new from. First time you use std::optional, have a look at this https://en.cppreference.com/w/cpp/utility/optional
It's insane that standard libraries include noob traps with known vulnerabilities, and that are considered bad practice. The first party documentation for a library is typically woefully incomplete at best, and actively misleading at worst, as updates to syntax and parameters don't get added and examples will refuse to compile.
"What does this parameter actually do" is often a question unanswerable by the official documentation.
I can't believe we actually live like this.