News for hackers. Stuff that matters.
Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik... by pjmlp on Sunday October 30, 2022 @04:36AM (#33392432)
Quite good reading to stay up to date how to write proper C++ code instead of classical C with C++ compiler, given how the language is anyway unavoidable in many domains until they migrate to something else, mostly beyond our lifetimes.

Like LLVM and GCC contributions, GPGPU frameworks and Khronos standards, language runtimes,...

Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik... by throwaway81523 on Sunday October 30, 2022 @05:06AM (#33392602)
> Quite good reading to stay up to date how to write proper C++ code instead of classical C with C++ compiler,

This is good too: https://github.com/isocpp/CppCoreGuidelines

I also liked Scott Meyer's book "Effective Modern C++".

Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik... by pjmlp on Sunday October 30, 2022 @05:16AM (#33392658)
Yes, although Scott Meyer's is now retired and his book series have stopped in C++14.

Some other books on this front,

"Beautiful C++: 30 Core Guidelines for Writing Clean, Safe, and Fast Code"

https://www.amazon.com/-/en/dp/0137647840

"Embracing Modern C++ Safely"

https://www.amazon.com/dp/0137380356

Also with clion and Visual Studio, it is possible to write code while having the static analysers ping back into the core guidelines.

Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik... by throwaway311022 on Sunday October 30, 2022 @10:31PM (#33401421)
Define “proper”. For me, “proper” is readable code without too much magic and over-reliance to compiler to do optimizations.

C-- and Orthodox C++ are there for a reason. People in the committee and Bjarne himself don’t write any production code, so anything they say, do, and standardize is taken with a ton of salt, often with sarcastic comments. It’s been years since anyone I know actually welcomed a new feature in the language.

I don’t even understand where outlandish features like ranges are coming from. These don’t solve ANY of the real-world problems, so why even invent this when you can fix outstanding issues instead?