Some Things C++ Does Right
summary
Argues that C++ rewards value-based by default reasoning and composes powerful primitives into concise solutions: shows std::remove_if + sequence constructor to filter a vector in two steps, implements file-read and function composition via iterator ranges and templated lambdas, demonstrates no-heap variadic printing with parameter packs and a variadic template sum computed at compile time, highlights fold expressions, std::unique_ptr for ownership, and using friend to enforce a two-step init pattern. Practical code examples compile and run with the standard library.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:33Why love C++
- 4:53Beauty and elegance
- 11:55Functional composition
- 17:18Value semantics
- 25:45Local reasoning
- 29:34Free functions
- 32:46Const correctness
- 41:43Friend keyword
- 48:40Generic algorithms
- 52:05Expressive coding
related talks
01h 01mFunctional C++
01h 01mThe Best Parts of C++
01h 03mFunctional C++ for Fun & Profit
01h 02mC++20 - My Favourite Code Examples
01h 23mThis is C++ - How to Use the C++ Superpower to Write Better C++ Code
01h 35mC++20 – My Favourite Code Examples
59mModern C++ for Fun and Profit: This isn’t your old C++
05mPostmodern Meta C++
