Abstraction Patterns: Making Code Reliably Better Without Deep Understanding
summary
Codebases reveal missing structure: spotting literal magic numbers and converting them to named constants, grouping seven boolean flags into a single options struct, replacing long switch-on-type blocks with small derived classes, and extracting 50–100‑member monster classes into focused subobjects all reduce bugs and cognitive load. Uses concrete tools and APIs: chrono and <numbers> for constants, std::any_of/std::find rather than raw loops, build‑system header selection for platform calls. Claims: these missing abstraction cues — including load-bearing blank lines and using any_of/find/rotate — measurably shrink complexity.
AI-written summary · about
chapters (5)
- 0:00Start
- 11:28Abstraction Localizes Complexity
- 28:52Breaking Up Huge Functions
- 52:13Getkeystate
- 56:46Update Cached Values
related talks
01h 03mKeynote: Abstraction Patterns
01h 18mAbstraction: The True Superpower of C++
57mAbstraction: The True Superpower of C++
01h 07mDesign Patterns in Modern C++
01h 22mSimplicity: not just for beginners
46mThe Right Kind of Abstraction
01h 21mEmpirically Measuring, & Reducing, C++’s Accidental Complexity
56mIdentifying Common Code Smells
