Create and run examples

Create and run examples in C++ — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
I need runnable examples for the new physics API so engineers and students can learn quickly.…
I need runnable examples for the new physics API so engineers and students can learn quickly. Create three short example programs in examples/ that compile with the project build: one shows creating a rigid body and stepping simulation for 60 frames, one shows adding a joint between two bodies, and one demonstrates applying impulse on collision callback. Each example should print a minimal textual log of positions each frame and include build instructions in a README. Ladder L1

Improve — make it easier to accept

+
Before I publish these examples to the docs site, make them easy to copy into student projects:…
Before I publish these examples to the docs site, make them easy to copy into student projects: keep them single-file programs, show the exact compiler command to build them, use trivial printable output, and add a short note about which header(s) and libraries to link. Highlight any API calls that are unsafe for multi-threaded use. Ladder L2

Decide — diagnose the stuck moment

+
I ran the rigid-body example and it behaves nondeterministically for students on different…

The example runs but students report different behavior

I ran the rigid-body example and it behaves nondeterministically for students on different machines. They see diverging trajectories after a few frames. I suspect floating-point nondeterminism and unpinned threads. I can't reproduce it on my desktop because I run a debug build. What is the most probable cause and what change to the example will make behavior deterministic across machines for teaching? Ladder L5

Become — change the pattern

+
Over time our examples either stop compiling or teach bad habits, and students waste time on…

Examples rot or confuse newcomers

Over time our examples either stop compiling or teach bad habits, and students waste time on trivial mismatches. What pattern of upkeep will prevent examples from becoming misleading, and what two habits should the team adopt when adding new examples so they remain correct and pedagogically useful? Ladder L6

Next to this one

Other programming language work people do in C++.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.