Part of #617.
Problem
The engine API cannot be read without four pieces of C++, and the audience may have none of them. Teaching them inside an engine exercise means failing at two things at once.
What to build
Chapter 01-cpp-you-need, four exercises, no engine code at all:
| id |
slug |
teaches |
| 01-01 |
data-in-a-struct |
a struct is named data; designated initialisers, because the engine uses them |
| 01-02 |
a-function-that-borrows |
a function taking Type &, and why the & changes what happens |
| 01-03 |
a-lambda-is-a-value |
a function you can store and pass, because that is what a system is |
| 01-04 |
angle-brackets |
what Something<Type>(...) means at a call site — reading it, never writing one |
Explicitly out of scope: inheritance, pointers, memory management, writing templates, the standard library beyond std::string.
Done when
- four exercises, audit clean, no engine header included anywhere
- each one names the engine API it is preparing the learner to read
- the Scripter QA persona clears the chapter without confusion
Depends on
#627
Reactions are currently unavailable
Part of #617.
Problem
The engine API cannot be read without four pieces of C++, and the audience may have none of them. Teaching them inside an engine exercise means failing at two things at once.
What to build
Chapter 01-cpp-you-need, four exercises, no engine code at all:
Explicitly out of scope: inheritance, pointers, memory management, writing templates, the standard library beyond std::string.
Done when
Depends on
#627