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

YouTube

Programming with Contracts in C++20

ACCU Conference via YouTube

Overview

Explore the concept of Design by Contract in C++20 through this comprehensive ACCU 2019 conference talk. Delve into the upcoming language feature of contracts, learning how they can enhance interface clarity and pinpoint responsibility in case of bugs. Gain insights on formulating effective contracts, their impact on interface design, and potential pitfalls in C++ implementation. Discover practical examples, including Ring Buffers, and understand key concepts such as preconditions, postconditions, invariants, and contract violations. Benefit from the speaker's personal opinions and extensive programming experience dating back to 1980. Acquire valuable guidance on thinking processes for contract formulation and interface design optimization.

Syllabus

Intro
Welcome
What are contracts
How I learned about contracts
Systematic approaches to program construction
Ring Buffers
Precondition
Preconditions
Postcondition
Exceptions
Post Conditions
Contract Logic
Invariants
Portrait specialization
Specializations
Subcontractors
Why bother
Contract Violations
Science Fiction
The Draft Standard
Contract Attributes
Contract Attributes Example

Taught by

ACCU Conference

Reviews

Start your review of Programming with Contracts in C++20

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.