News for hackers. Stuff that matters.
Re:Don’t blindly prefer emplace_back to push_back by jdashg on Thursday March 04, 2021 @12:50PM (#26345544)
> Unfortunately, programming in C++ is really brutal for people who would rather learn by example than by carefully reading documentation.

This is a great observation! There's probably a ton of this that feeds the "$lang/api/framework is garbage"/"no it's not" schisms. "Well do you prefer documentation or a REPL?"

Re:Don’t blindly prefer emplace_back to push_back by DougBTX on Thursday March 04, 2021 @01:47PM (#26346431)
In some languages the documentation is available as essentially a property of the documented object, so pulling up docs in the repl is easy. It isn’t quite a binary choice.
Re:Don’t blindly prefer emplace_back to push_back by whatshisface on Thursday March 04, 2021 @12:58PM (#26345671)
"A manual is a human-operated type system."