~/talk

C++ Code Smells

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture]
slides:none on file

Argues that hundreds of C++ best-practice rules collapse into a handful of actionable smells: missing const, ignored compiler warnings, and heavy use of moves and casts that prevent RVO. Demonstrates live code edits turning raw loops and out-parameters into STL algorithms and return-by-value, shows string→std::string copies replaced with string_view, and warns about magic statics vs constexpr or extern. Recommends tool-driven checks (compiler warnings, clang-tidy, CppBestPractices/CppCon materials) to find the smells and simplify fixes.

AI-written summary · about

  1. 0:00Intro
  2. 0:21Jason Turner
  3. 1:32C++ Best Practices
  4. 9:43Raw Loops - Sean Parent
  5. 15:55Multi-Step Functions
  6. 23:28Code With Conversions
  7. 34:32Code Smells
  8. 40:55Let's Update This Code Sample #2
  9. 53:47Missing and Ignored Compiler Warnings
  10. 54:392. Missing const and constexpr, Misplaced
  11. 55:28Weak Types And Casts
  12. 56:50Bonus Code Review
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.