Advanced Levelization Techniques (part 3 of 3)
summary
Defines a compact package-naming rule: every component group uses a package group 3-letter prefix so names stay short and unique, and some graphs force at least three packages to break cycles. Presents three insulation patterns with concrete tradeoffs: pimpl pointer-to-impl adds one indirection but hides implementation, procedural C wrappers use a Z_ prefix mapping, and abstract protocol interfaces remove compile/link coupling. Shows an adaptive memory pool that doubles chunk sizes (32→64 changeable) and a toy-stack that keeps heavy work in the .cpp so clients avoid recompiles; these techniques reduce rebuilds and enabled quick fixes in real projects.
AI-written summary · about
chapters (15)
- 0:00Introduction and setup
- 1:04Package naming and grouping
- 6:40Insulation vs encapsulation
- 12:31Abstract interface technique
- 14:37Pimple idiom explained
- 19:05Procedural interface overview
- 25:42Defensive programming with asserts
- 27:54Partial implementation techniques
- 32:33Static constants in headers
- 33:39Toy stack partial insulation
- 37:57Adaptive memory pool
- 47:45Q&A on insulation techniques
- 48:29Sound physical design principles
- 54:30Lateral vs layered architecture
- 59:04Date class design example
related talks
26mDon't Package Your Libraries, Write Packagable Libraries! (Part 2)
01h 30mC++ Modules and Large-Scale Development
01h 28mModern C++ Design reloaded
01h 37mC++ And Beyond: Discussion
01h 16mPolymorphism, Cohesion, and Coupling in C++
01h 05mAbstraction Patterns: Making Code Reliably Better Without Deep Understanding
28mMethod Bundles (New Ideas/Vision paper)
58mDependency Management at the End of the Rainbow
