[HN Gopher] Modern C++ - A collection of resources on modern C++
       ___________________________________________________________________
        
       Modern C++ - A collection of resources on modern C++
        
       Author : gjvc
       Score  : 10 points
       Date   : 2024-08-15 20:42 UTC (2 hours ago)
        
 (HTM) web link (awesomecpp.com)
 (TXT) w3m dump (awesomecpp.com)
        
       | jclay wrote:
       | I find the Chromium codebase to be one of the best resources for
       | learning large-scale, high quality modern C++ best practices.
       | They stay on a bleeding edge toolchain: near tip of tree clang,
       | lld and libc++ is used on all platforms. They stay pretty recent
       | on c++ standards -- they're on C++20 for the last year or so.
       | 
       | I think they are also contributing a lot of the new libc++
       | hardening features that have been landing:
       | https://libcxx.llvm.org/Hardening.html IIRC, production chrome
       | ships with Extensive hardening.
       | 
       | They also roll out massive code changes via automated clang
       | rewrites. Recent examples are replacing all raw pointer members
       | with their raw_ptr wrappers that bring some additional safety.
       | They also switched from absl::optional to std::optional in one
       | swoop.
       | 
       | If you haven't done it before, take a browse through //base
       | sometime, it's got a lot of well commented code to learn from.
       | You'll see they're already using c++20 concepts and requires
       | clauses in a number of places.
        
       ___________________________________________________________________
       (page generated 2024-08-15 23:01 UTC)