Course
Modern C++ in Practice
A working programmer's guide to the maintainable core of C++17/20/23 — ownership, value semantics, safe lifetimes, CMake, sanitizers, and the engineering discipline that keeps large codebases survivable.
Reviews
Enrolled members can rate this course.
No reviews yet.
Ownership and Object Lifetimes
Use RAII, smart pointers, and move semantics to make resource ownership explicit instead of hoping callers remember cleanup.
- 01RAII: Lifetimes Are the ProgramTreat constructors and destructors as the resource-management mechanism, not as syntax trivia, and design objects whose lifetimes make cleanup automatic.24mOpen
- 02Smart Pointers as an Ownership VocabularyUse unique_ptr, shared_ptr, weak_ptr, and raw references to communicate ownership precisely instead of treating smart pointers as memory decoration.26mOpen
- 03Move Semantics and Honest Value TypesUnderstand moves as ownership transfer, design types that behave like values, and avoid the false economy of micro-managing copies.25mOpen
Interfaces and the Maintainable Language Subset
Design APIs around lifetimes, errors, and constrained abstractions while avoiding the clever corners of C++ that age badly.
- 01References, string_view, span, and the Dangling BoundaryChoose owning and non-owning parameter types deliberately, recognize when views dangle, and keep lifetime rules visible at API boundaries.27mOpen
- 02Errors Without Theater: Exceptions, optional, and expectedPick error mechanisms based on failure distance and recovery semantics, use RAII to keep exception safety safe, and expose honest failure types at boundaries.26mOpen
- 03The Maintainable Subset of C++17/20/23Choose language features that reduce local reasoning cost — concepts, spans, structured bindings, ranges where readable — and reject cleverness that hides invariants.28mOpen
Build, Debug, and Production Confidence
Build reproducibly with CMake, turn undefined behavior into test failures with sanitizers, and wire warnings and tests into delivery.
- 01CMake Without the Fog: Targets, Presets, and Reproducible BuildsBuild modern CMake projects around target-scoped properties, dependency boundaries, presets, and CI-reproducible configure commands.25mOpen
- 02Sanitizers: Make Undefined Behavior LoudUse ASan, UBSan, TSan, and fuzzing harnesses as diagnostic instruments, understand their output, and integrate them into CI without hiding failures.27mOpen
- 03Warnings, Static Analysis, Tests, and the Quality PipelineConfigure warnings as executable review, use clang-tidy selectively, test behavior across build modes, and make CI enforce the standards the team actually means.23mOpen