~/talk

Making C++ Code Beautiful

Talkat CppCon 2014 · on Wednesday, 2014-09-10· at 14:00· Pascal· [design-collaboration]
links:none on file
slides:none on file

Argues that C++ becomes readable by replacing macros with enum classes, using RAII destructors for cleanup, and preferring lambdas and algorithms (range-based for, auto) over walls of code. Shows a 5,000-line function where only 13 lines do the real work, and reports halves codebases by removing needless comments and using libraries instead of reinventing parsers or matrix math. Demonstrates lambda-initializer trick for complex setup and finds RAII fixes intermittent leaks.

AI-written summary · about

  1. 0:00Start
  2. 0:27Making C++ Code Beautiful
  3. 4:55Macros are ugly
  4. 14:47Lambdas are beautiful
  5. 18:57Invisible code is beautiful
  6. 35:42Comments are ugly
~/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.