Write new class definitions

Write new class definitions 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 a new class to represent an in-game inventory item that can be stacked, serialized to save…
I need a new class to represent an in-game inventory item that can be stacked, serialized to save files, and compared for sorting. It must expose a public constructor taking an ID string, quantity int, and a timestamp, provide methods to increase and decrease quantity with bounds checks, return a compact binary serialization for disk, and implement operator< for stable sorting by rarity then timestamp. Write the class definition and method signatures in header-style, including const correctness and noexcept where appropriate.

Improve — make it easier to accept

+
Before I add this inventory class to the codebase, make it easy for other engineers to review and…
Before I add this inventory class to the codebase, make it easy for other engineers to review and use. Surface the invariants up front: max stack size, valid ID format, and ownership semantics. Make method names self-explanatory, group serialization and mutation methods, and flag any places a reviewer will hesitate: implicit conversions, throwing constructors, or non-atomic quantity updates.

Decide — diagnose the stuck moment

+
I just pushed a constructor that throws on empty ID; I expect callers will sometimes pass legacy…

I just wrote a constructor that throws when the ID is empty.

I just pushed a constructor that throws on empty ID; I expect callers will sometimes pass legacy data and I’m afraid this will crash save-load paths in debugging. Tell me the likely problem, whether to switch to a non-throwing repair path or keep the throw and update callers, and give the safest next code change to make now with minimal churn.

Become — change the pattern

+
Every time I add a new item type I duplicate a class and tweak three fields. It costs review time…

Repeatedly rebuilding similar item classes with slightly different fields.

Every time I add a new item type I duplicate a class and tweak three fields. It costs review time and breaks serialization compatibility. Where am I losing time and credibility, and what two habits should I change to prevent this pattern — one technical (design a stable base class or variant) and one procedural (how to gate additions at code review)?

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.