Study companion / Reading order
Learn what the next build needs.
The projects set the questions. The study plan connects C++ foundations, mathematics and graphics to the simulations, renderers and game systems that need them.
I plan to study the mechanism, apply it in a program and revisit it with a different case. The references below are part of that plan; listing a book does not mean I have finished it.
A focused sample: copying and ownership
This existing 14-concept sample covers one part of the study path. It is not the episode order: the projects also need basic C++, vectors and geometry. The notes below assume familiarity with functions, classes and operators.
- Pointers and addressesPrerequisite: basic types
- ReferencesPrerequisite: pointers
- const in parameters, members and methodsPrerequisite: references
- Type deduction with autoPrerequisite: const
- Operator overloading, assignment includedPrerequisite: const
- new and delete, the heapPrerequisite: pointers
- Member and constructor init orderPrerequisite: classes
- Shallow vs deep copy(pivotal)Prerequisite: heap + init order
- Copy constructor and assignmentPrerequisite: shallow/deep + operators
- Exceptions and stack unwindingPrerequisite: functions
- RAII and resource ownershipPrerequisite: copy + exceptions
- Rvalue references and value categoriesPrerequisite: copy
- Move constructor and assignmentPrerequisite: rvalue refs + RAII
- Rule of Five, Three and ZeroPrerequisite: move
Link 8 is marked pivotal because understanding what a copy does to owned resources gives the later rules a purpose. Read the copy problem alongside the special member functions that address it.
References in the study plan
Sources to return to as a project introduces a new mechanism. Read the relevant section, use it and check what the program actually does.
C++ foundations and object lifetimes
C++ Primer, 5th edition; A Tour of C++, 3rd edition. Language semantics, references, classes and resource ownership before the later systems rely on them.
Vectors, geometry and rendering
3D Math Primer for Graphics and Game Development; Fundamentals of Computer Graphics. References for the mathematics and image-making questions in the project plan.
Systems, memory and measurement
Computer Systems: A Programmer's Perspective; What Every Programmer Should Know About Memory. Return to these when a concrete systems or performance question needs them.
Debugging and engineering habits
The Pragmatic Programmer. Reproduce a failure, separate a hypothesis from a result and keep the investigation readable.
The wider plan also includes OpenGL references for the later GPU projects. Chapters and tools will be chosen for the task at hand; the scope can change as the projects develop.
Keep following the work
These study notes and the sample above are free to read. Follow the planned builds on YouTube or explore how the projects fit together in the devlog.