Making C++ Code Beautiful
summary
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
chapters (6)
- 0:00Start
- 0:27Making C++ Code Beautiful
- 4:55Macros are ugly
- 14:47Lambdas are beautiful
- 18:57Invisible code is beautiful
- 35:42Comments are ugly
related talks
01h 00mBack to Basics: Object-Oriented Programming in C++
53mIntentional Code - Minimalism in a World of Dogmatic Design
41mKeynote: The Art of Simplicity
59mFree your functions!
57mIntentional Code - Minimalism in a World of Dogmatic Design
58mIntentional Code - Minimalism in a World of Dogmatic Design
50mIntentional Code - Minimalism in a World of Dogmatic Design
01h 28mLaw of Demeter: A Practical Guide to Loose Coupling
