The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter
https://cppcon.org --- The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter - CppCon 2025 --- This talk is all about the C++26 contracts feature. It covers the following topics: Why defensive programming is a Good Thing (mainly for functional safety, but occasionally also for memory safety) Brief overview of C++26 contracts, and why they’re way better than C assert (spoiler: writing them on declarations, being able to use them in release builds, and language support is just way better than macros) The 3-page “Effective C++ Contracts book” — best practices you need to know to use them (spoiler: keep compound conditions together, don’t write side effects, understand the pros and cons of installing a throwing violation handler… that’s pretty much… it?) Why they’re viable, because they address the key things we need in production (which we’ll list) Why they’re minimal, because we actually need every part in C++26 to use them at scale (which we’ll do by systematically summarizing why each piece is necessary) What the future evolution of contracts holds (spoiler: virtual functions! groups/labels!) A review of Frequently Asked Questions --- Slides: https://github.com/CppCon/CppCon2025/... Work at Hudson River Trading (HRT): https://tinyurl.com/safxfctf --- Herb Sutter Herb is a technical fellow at Citadel Securities, designer of several Standard C++ features, and chair of the ISO C++ committee and the Standard C++ Foundation. His current interest is simplifying C++. --- CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts. Annual CppCon Conference - https://www.cppcon.org / cppcon https://x.com/cppcon / cppconference / cppcon https://mastodon.social/@CppCon --- Videos Filmed & Edited by Bash Films: http://www.BashFilms.com YouTube Channel Managed by Digital Medium Ltd: https://events.digital-medium.co.uk --- #cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer

Making C++ Safe, Healthy, and Efficient - John Lakos - CppCon 2025

Lazy and Fast: Ranges Meet Parallelism in C++ - Daniel Anderson - CppCon 2025

React From Another Universe - David Sancho Moreno

Three Cool Things in C++26: Safety, Reflection & std::execution - Herb Sutter - C++ on Sea 2025

Rust vs C++ with Steve Klabnik and Herb Sutter

Compiler Explorer: The Features You Never Knew Existed - Matt Godbolt - CppCon 2025

Back to Basics: C++ Concepts - Jeff Garland - CppCon 2025

I Hacked This Temu Router. What I Found Should Be Illegal.

Constructors Are Broken

The Cost of Concurrency Coordination with Jon Gjengset

Building the PERFECT Linux PC with Linus Torvalds

Rust vs C++ Salaries in 2025 (Why Rust Pays $100K More)

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Once You Understand it, You Will Think Everything Else is Silly - Toyota E-CVT

Reflection: C++’s Decade-Defining Rocket Engine - Herb Sutter - CppCon 2025

Back to Basics: C++ Ranges - Mike Shah - CppCon 2025

Concept-based Generic Programming - Bjarne Stroustrup - CppCon 2025

Modern Architecture 101 for New Engineers & Forgetful Experts - Jerry Nixon - NDC Copenhagen 2025

CMake Doesn't Have to Be Painful | Simple Strategies That Work - Bret Brown - CppCon 2025

