News for hackers. Stuff that matters.
Re:Not-a-Linux distro review: SerenityOS is a Unix-y love le... by paulirwin on Wednesday August 18, 2021 @10:02AM (#28221024)
The other link posted here is great info but might be a bit overwhelming. Some of the highlights of modern C++ to look into:

Lambda functions

Smart pointers = less need for *

Move semantics = less need for pointers, efficient pass/return-by-value

Type inference with `auto`

`nullptr` = strongly-typed null pointer type sans macros

`constexpr` = compile-time programming sans macros

Deleted functions = can prevent things like accidental copies

Range-based `for` = very similar to Java's for-each

That should mostly catch you up from C++03 to C++11-ish (language features only; there's plenty more to explore with library changes). C++14 and 17 had some refinements to those items so review the above in a current context for additional enhancements to them. C++20 adds some major things like concepts and modules, but starting there might not be the best idea to get up to speed.

(I'm a C++ amateur and hobbyist, so I might not be using 100% correct terms above! I'm also a very, very minor SerenityOS contributor.)

There are no comments on this comment yet.