https://cppnorth.ca/
---
Should I Check for Null Here?
Two years ago a junior developer, doing her very first "introductory" task, asked the seemingly simple question "should I check for null here?".
This, of course, resulted in a multi page response from me, starting with:
"It depends"
and ending with:
"And that's the short version. For the long version, see my hour/day presentation on whether to check for null (which is actually not about null at all, but Contracts...)"
Aha! Two years later...
This is a talk about Error Handling - but in particular those errors you didn't expect - bugs.
And yes, this is really a talk about Contracts, in particular C++26 (and beyond) Contracts. What are they, What AREN'T they, how to use them and WHY.
---
Slides: https://github.com/CppNorth/CppNorth_...
Sponsored by:
Optiver: https://optiver.com/
JetBrains: https://www.jetbrains.com/
---
Tony Van Eerd
Christie Digital
Tony has been coding for well over 25 years, and hopefully coding well for most of that. Previously at Inscriber, Adobe, and BlackBerry, he now enables painting with light at Christie Digital. He is on the C++ Committee. He is a Ninja and a Jedi.
---
CppNorth is an annual C++ conference held in Toronto, Canada.
Annual CppNorth C++ conference: https://cppnorth.ca/
CppNorth Bluesky: https://bsky.app/profile/cppnorth.bsk...
---
YouTube Videos Edited by
Reid McInroy
[email protected]
#cpp #cppnorth #programming