Главная
Study mode:
on
1
Introduction
2
Agenda
3
What is a contract
4
Examples of contracts
5
Undefined behavior
6
Contract no language
7
Contract no Java
8
Preconditions
9
Postconditions
10
Invariants
11
Error Reporting
12
Guarantees
13
Changing Promises
14
Finding a Contract
15
Contract Terminology
16
Wide vs Narrow Contracts
17
Survey Results
18
Example
19
Post Conditions
20
Operating Throws
21
Simple Function
22
Bug in Implementation
23
Changing the Contract
24
Is Another Wide Contract Better
25
Plug
26
Contract Tech
27
Test Drivers vs Unit Tests
28
C vs C Standard
29
Key Issues
30
Expensive Checks
31
Customization
32
Contract
33
The Workflow
34
Simple First Step
Description:
Explore a comprehensive conference talk on gradually adopting contract checking in production code. Learn about the four fundamental semantics of contract checks and how to implement them in live systems. Discover the proposed C++23 language support for contracts and practical alternatives using existing libraries. Gain insights into preconditions, postconditions, invariants, and error reporting techniques. Understand the differences between wide and narrow contracts, and how to effectively use contracts in test drivers and unit tests. Examine key issues such as expensive checks and customization options. Follow a step-by-step workflow for implementing contracts, from ignored comments to assumed optimizations, to improve code quality and catch errors early in the development process.

Enforce Inform Ignore Assume - Gradual Adoption of Contracts in Production Code

ACCU Conference
Add to list
00:00
-00:44