HolyC Medium · Lesson 1 · On the house

Classes deep

HolyC · medium · Classes deep. Lesson 1 is free — on the house.

Lessons · HolyC Medium · Lesson 1 of 10 · On the house

Classes deep

HolyC · medium · Classes deep.

Illustration for the HolyC course
Lesson 1 is on the house. The rest opens with the paper, the Daily, or a gift.

You already know Introductory and Easy. Medium assumes those habits and asks for sharper tools. Today: Classes deep.

Today's focus is Classes deep in the HolyC/TempleOS world. Read for mechanisms and tradeoffs, not folklore. Accurate description first; opinion second.

This level assumes Intro and Easy HolyC shapes.

Compare mentally with ordinary C where the analogy helps — and notice where TempleOS's single-vision design makes the analogy fail. Name the failure; do not paper over it.

Classes deeper than Point: methods, layout awareness, and how objects sit in memory.

Field order and size matter when you poke bytes or interoperate with low-level code. Draw the layout.

Encapsulation is a habit: keep related operations near the type. Discipline is on you more than on a heavy runtime.

Prefer small classes with clear invariants over god-objects that know the whole OS.

The still is a short labeled note for this topic. Match it exactly in the exercise. Quizzes check the topic's meaning, not website chrome trivia.

Safety and portability: archive examples may assume a full TempleOS environment. Emulators differ. Do not paste untrusted code into machines you care about.

When you cannot run something, still trace it: inputs, effects, outputs. Paper simulation is a real skill in systems study.

Keep judgment online: what is essential algorithm versus environment furniture? That question will recur through Expert especially.

Hold Classes deep as a behavior, not a vocabulary flashcard. Ask: what inputs matter, what action runs, what is visible afterward? If you cannot fill those three slots, you are skimming. Write them in a margin before the quizzes.

When something fails around Classes deep, change one thing. Read the error or the wrong output. Return to the still. Do not rewrite the whole example when one token is wrong. Calm retries beat dramatic rewrites.

Compare Classes deep with the nearest habit you know from C, Python, or plain English — and name the difference out loud. HolyC's teaching value is often the delta: familiar family, different ergonomics.

Open-book checks for Classes deep reward careful reading of this page, not trivia about the website chrome. The right answer is a claim we actually made. Near-miss choices sound technical; they fail because they invert the lesson.

Before the still, predict. After the still, compare. That predict-compare loop is how Classes deep becomes muscle memory. Passive rereading without prediction is how you forget by tomorrow.

Say a one-sentence teaching version of Classes deep you could give a friend. If the sentence needs five caveats, your mental model is still foggy — tighten it. Precision in speech precedes precision in code.

As you continue, Classes deep will reappear inside larger programs. Functions wrap it. Branches choose it. Loops repeat it. Learning it cold now prevents cargo-cult pasting later.

Keep a scratch note for Classes deep: one worked example, one failure you fixed, one sentence of definition. That tiny notebook beats highlighting the same paragraph five times.

If you are tired, stop at the still for Classes deep and trace tokens with a finger: type, keyword, operator, semicolon. Rushing past tokens is how mysteries are born. Slow eyes make fast programmers.

Wrong answers on Classes deep quizzes are teachers too. Read the explain line. Relate it back to the still. A corrected misconception sticks harder than a lucky first guess.

Emulators, archives, and dialect notes may disagree on edges around Classes deep. We teach the classic shape on this page. When you port elsewhere, read that environment's docs and adjust — without abandoning the core idea.

Finally for Classes deep: write the still from memory on paper, then uncover the page and diff. Memory retrieval is the study method that survives the weekend.

Worked example mindset for Classes deep: shrink the idea until you can execute it on a napkin. If the napkin proof fails, the full program will not save you. Enlarge only after the tiny case is honest.

Common confusion near Classes deep: mixing the name of the idea with a neighboring idea from C or Python. Write one contrast sentence — "this is X, not Y" — and keep it beside the still. Contrast sentences prevent weeks of soft bugs.

Practice drill for Classes deep: change one literal in the still by a small delta, recompute the expected result by hand, then confirm. Single-delta drills expose off-by-ones and wrong-type assumptions faster than rereading the same paragraph.

Teaching standard for Classes deep: you should be able to explain precondition, action, and postcondition without looking. If any of those three is fuzzy, that fuzzy slot is the real lesson hiding inside the lesson.

classes-deep

# HolyC · Classes deep
# Medium level — Host note
Classes deep.

The still labels Classes deep for this level. Read both lines. The exercise asks you to match that note. The teaching above is what the quizzes probe.

Pitfalls for Classes deep: skimming the note without reading the teaching; importing web-framework assumptions; treating TempleOS as drop-in Linux; skipping prior-level habits; confusing a conceptual note with a full runnable kernel patch.

Quiz

What is today's HolyC topic?

Quiz

What should you draw when layout matters?

Quiz

What prior levels are assumed?

Quiz

Why keep classes small?

Quiz

What does encapsulation mean here as a habit?

Quiz

Is Medium re-teaching the first hello string?

Check

Match the still for: Classes deep.

That is Classes deep. When checks are green, mark it passed. Next lesson when you are ready.

Open-book: the answers are on this page. Pass every quiz and check (7) to mark the lesson done. This visit: 0/7.

Classes deep · HolyC Medium (free) — The Gold Standard