Главная
Study mode:
on
1
Intro
2
Outline
3
Optional parameter
4
Late initialisation of member
5
Dereferencing is undefined behaviour
6
Unclear APIs
7
Why is static typing good?
8
What does null do to static typing?
9
Conflating notions
10
Values which can be missing
11
Techniques which allow for missing values
12
References over pointers
13
Values over pointers
14
Return values
15
Use the standard library
16
Maybe techniques are for maybe values
17
std::optional
18
Bug classification Where
19
Remaining pointers
20
Tackle maybe pointers
21
Tackle definite pointers
22
A bright future
Description:
Explore a comprehensive conference talk on eliminating null pointers in C++ programming. Learn how banning null can lead to beautiful, safer code with clearer interfaces and fewer unnecessary checks. Discover techniques for replacing null with non-nullable types, std::optional, and gsl::not_null. Understand the problems associated with null pointers, including undefined behavior and unclear APIs. Dive into practical examples of using value semantics, references, and standard library components to create more robust C++ code. Gain insights on bug classification and strategies for handling both optional and definite pointers. Suitable for introductory-level C++ developers looking to improve code safety and readability.

C++ - No More Nulls! - Fixing the Billion Dollar Mistake

NDC Conferences
Add to list
0:00 / 0:00