Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Build C++ Interfaces That Are Hard to Use Incorrectly - Lecture

cpponsea via YouTube

Overview

Explore techniques for building robust C++ interfaces that minimize accidental misuse in this conference talk from C++ on Sea 2023. Learn how to leverage the C++ type system to push precondition violation detection from run-time to compile-time, reducing opportunities for bugs in user code. Discover design strategies for distinguishing precondition categories, preventing interface misuse through type-based techniques, and examining the trade-offs of this approach. Gain insights into creating portable code and exposing complex functionalities through simple, richly-typed interfaces as presented by Andreas Weis, an experienced C++ developer and library writer.

Syllabus

Intro
Motivation
Overview
Type System to the rescue!
Structuring arguments
Structured Data Access
Declarative Interface
Execution Tokens
Scoped Execution Contexts
Complex State Machines
The GoF State Pattern
Conclusion

Taught by

cpponsea

Reviews

Start your review of How to Build C++ Interfaces That Are Hard to Use Incorrectly - Lecture

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.