Skip to content
0:00 / 0:00

#modernc++#smartpointers#cpp11

CppCon 2014: Herb Sutter "Back to the Basics! Essentials of Modern C++ Style"

CppCon

189K subscribers • 103 videos on Hallway • Conference channel

YouTube
  • Recommended by 2 people: 2 on Hacker News.
  • A classic. People kept recommending it from 2014 to 2018.
  • Presented by Herb Sutter, chair of the ISO C++ committee
  • Linked in the descriptionCppCon/CppCon2014

Intermediate. Assumes working knowledge.

323K views12 years ago2 recommendations

Programming languagesSystems programmingC++Design patternsPerformance and optimization

Herb Sutter explains the essentials of modern C++ style, covering variable declarations, parameter passing, loops, and smart pointers.

cppcon.org -- Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/CppCon/CppCon2014 -- This talk revisits basic questions, such as how to declare and initialize a variable, how to pass a value to a function, how to write a simple loop, and how to use smart pointers, in the light of experience with C++11 and the latest C++14 refinements. This involves examining auto, rvalue references, range-for loops, uniform initialization, lambda expressions, unique_ptr and shared_ptr, and more. -- Herb Sutter - Author, chair of the ISO C++ committee, software architect at Microsoft. -- Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctf

Why it's here

2 people recommend this

What people say. Engineers frequently recommend this talk as a foundational guide for learning modern C++ features and best practices.

jervon Hacker News • Recommends

On “Ask HN: How to refresh on modern features of C++?”

Herb Sutter, one of the most prolific C++ experts out there, recently gave a talk on Modern C++ 1. In the beginning of his talk, he states that every C++ developer should read a "Tour of C++" 2 by Bjarne Stroustrup, the original designer of C++. I recently read it and it's great. The book has less than 200p, but still covers the most important parts of C++11, albeit not in great detail (the reader is pointed to "The C++ Programming Language" by the same author for that). Read it! And watch the youtube video in 1. 1 link to this video 2 link

pjmlpon Hacker News • Recommends

On “Ask HN: Best way to learn modern C++?”

- 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 to this video Some of the Kate Gregory videos, "Stop Teaching C" - link "10 Core Guidelines You Need to Start Using Now" - link "It's Complicated" - link

programming-talkscurated list on GitHubMentions

Under “C++”

Back to the Basics! Essentials of Modern C++ Style 01:40:27 by **Herb Sutter** (2014)

legends2kon Hacker News • Mentions

On “Cheat Sheet: C++ Function Parameter Choices [pdf]”

In our 60+ team of C++ programmers, a constant theme that keeps coming up in code reviews is how a function optimally takes its parameters. There's been enough overthinking and I came across Herb Sutter's CppCon 2014 Essentials of Modern C++ Style 1 where he explains the various cases. I made a cheat sheet (1-page PDF) for quick reference of the options and when to go for them. Comments and suggestions welcome! GitHub project 2. # Credits - Herb Sutter, other C++ experts and the community - Emacs3 and Org-mode4 creators - CheatSheet by Musa Al-hassy # Links 1: link to this video 2: link 3: link 4: link 5: link

oconnor663on Hacker News • Mentions

On “Things you can’t do in Rust (and what to do instead)”

…uite is probably going to miss it, and ASan isn't going to be able to help you. Here's an example from one of Herb Sutter's talks, which I refer to frequently. He describes an issue that can come up with shared_ptr in reentrant/callbacky code, and the punchline is that you have to be careful never to dereference a shared_ptr that might be aliased: link to this video I also just wrote a giant example of my own :) in reply to your toplevel comment. link . TSan will be pretty good at catching some of the simple variants of this, like where you totally forget to take a lock. But it's going to have a hard time with cases where you "stash" a reference longer than you should, because later uses of the refer…