CppCon 2017: Kate Gregory “10 Core Guidelines You Need to Start Using Now”

Channel:CppCon · Length:1:02:33 · Published:2017-10-17 · Views:143830

Watch on YouTube

Summary

Kate Gregory's CppCon 2017 talk picks ten highlights from the C++ Core Guidelines and shows examples and benefits for each. It is aimed at C++ developers of any experience level who have not read the full guidelines.

Why HN recommends it

Recommended as the condensed tl;dr of the C++ Core Guidelines and as a route into modern C++.

I recommend the tl;dr version from Kate Gregory at CppCon 2017 — HN, 2018

C, C++, Rust, Go & systems languages

Subtitles (excerpt)

- [Kate] Hey, good morning everyone. - [Audience] Good morning. Thank you for waking up and dragging yourself here, something that's going to get harder and harder as the week goes on, I appreciate it. My name is Kate Gregory and I was trying to figure out exactly when I started writing in C++, but I didn't know was going to be like a momentous occasion. But I'm going to declare that it was 1987 'cause then I can say I've being do it for 30 years. And in that time I've learned an awful Lot and I like to tell my children, "The only thing better than learning from your mistakes" "is learning from someone else's." And that's kinda what this is all about. So let's start with a show of hands, not counting the title of this talk, the abstract of this talk, or Monday's keynote, how many of you had heard of the C++ core guidelines? That's pretty good, that's about three quarters. I'm happy about that. How many of you have been to GitHub to this URL just once and looked at it at least once. So that's less hands by a dramatic factor like about a third of you. How many of you have again once changed the way you code something or persuaded someone else to change the way they were going to do something

On Hacker News

- Tour of C++ ( [LINK] ) - Principles and Practice Using C++ ( [LINK] ) - From Mathematics to Generic Programming ( [LINK] ) - The Scott Meyers books Some of the Bjarne Stroustrup videos, "Learning and Teaching Modern C++" - [LINK] Some of the Herb Sutter videos, "Writing Good C++14... By Default" - [LINK] "Back to the Basics! Essentials of Modern C++ Style" - [LINK] Some of the Kate Gregory vide… — pjmlp, 2018-03
I recommend the tl;dr version from Kate Gregory at CppCon 2017, “10 Core Guidelines You Need to Start Using Now”: [VIDEO] — boltzmannbrain, 2018-03
In fact, Sutter (et al) are working on lifetimes in CppCoreGuidelines [1]. I built their clang tree and tried it out without bothering to RTFM and tried out the warning on a pile of C++ code. I naively assumed that it might be a generally-useful warning ("-Wlifetime") that's not ready to be introduced upstream. That's not the case AFAICT. What I suppose I would've learned from RTFM is that the pr… — wyldfire, 2019-07
No, GSL is a kind of stop-gap solution, until standard catches on. For example std::string_view and ongoing design on std::array_view are based on gsl::span . The gsl::byte is also no longer needed on C++17 thanks to std::byte as yet another example. The GSL asserts are there until code contracts[0] get into the standard. The magical types like gsl::owner allow clang-tidy and VC++ checkers to app… — pjmlp, 2017-11

Related videos