Skip to content

cpp notes

Erick Matsen edited this page Apr 22, 2021 · 5 revisions

C++ programming notes

Let's keep everything as simple as possible, with simple inheritance hierarchies and clear interfaces.

Development environment

Set up your development environment to provide detailed errors and warnings-- this will teach you a lot about the language as you cod.

I strive to satisfy clang-tidy as per the associated .clang-tidy file but you will see that I'm not all the way there. I use vim + ALE + clangd + clang-tidy. Sane people will use an IDE.

Books

You do not need to pick up some huge C++ programming tome.

  • Stroustroup's A tour of modern C++ is small and quite lovely.
  • Martin's Clean Code has a lot of thought-provoking information. However, you can get a lot of the main points (as well as some some things that I also disagree with) by reading this review.

Cppcon back to basics talks

These are really great!

Herb Sutter did a 2014 talk where he lays out the C++ core guidelines for using pointers and references. That's really valuable. (We don't use his "always use auto even if you want to specify a type" idiom.)

I have watched most of these, and they are really good.

Scott Meyers talks

Other talks

Clone this wiki locally