Sub topic 11
Writing the outline as a document
This chapter assumes you already have learning outcomes, a list of sections, and a rough set of lectures with lengths and formats. It also assumes you can read YAML and basic Python. Here you move all of that out of your head and out of loose notes into one file that you can check, share, and revise.
Why the outline should be a document
Notes in a notebook or a slide deck are easy to start and hard to check. You can't count minutes across them, and you can't tell whether a section has a practice task. A written outline fixes this if it follows one consistent shape.
A good outline document does four jobs:
- It records decisions: who the course is for, what learners will do, and what each section delivers.
- It is a single source of truth. Scripts, slides, and recordings come from it, so changing a title in one place changes it everywhere you copy it from.
- It can be checked by a person or a script. You can see the total runtime and whether any lecture is too long.
- It can be reviewed by someone else, such as a colleague or a sample learner, before you spend hours recording.
You can write the outline in a spreadsheet, a Markdown list, or a structured data file. This chapter uses YAML because it is readable by humans, easy to diff in version control, and simple to load from a script. The same fields work in any format.
Decide the fields before you fill them in
Every level of the outline needs the same fields on every entry. If some lectures have a format and others don't, you can't check them. Start with this minimum.
| Level | Required fields | Optional fields |
|---|---|---|
| Course | title, audience, outcomes | prerequisites, total target length |
| Outcome | id, text | none |
| Section | title, outcome, serves, lectures | practice, assessment |
| Lecture | title, format, minutes | notes, resources |
Two fields deserve explanation.
- Section
outcomeis one sentence saying what the learner can do after the section. It is the test for whether a lecture belongs in the section. - Section
servesis a list of course outcome ids. It links each section to the course-level promises, so you can see which outcomes have no section behind them.
Use plain whole numbers for minutes. A value like "about 5" can't be summed. If you don't know a length yet, make a first estimate and mark it in notes. A rough number you can sum is better than no number.
A complete outline file
Here is a full outline for the espresso course. It uses ids for outcomes, a serves list for each section, and a practice field where a section has a task.
course: Intro to Home Espresso
audience: Beginners with a machine but no training
prerequisites:
- Owns an espresso machine and a grinder
outcomes:
- id: O1
text: Pull a balanced shot using a repeatable routine
- id: O2
text: Diagnose sour and bitter shots and adjust
sections:
- title: Getting started
outcome: Know how the course works and what you will make
serves: [O1]
lectures:
- title: Welcome and course goals
format: talking head
minutes: 3
- title: Tour of the equipment
format: screen-free demo
minutes: 6
- title: Dialing in a shot
outcome: Adjust grind and dose to fix a shot
serves: [O1, O2]
lectures:
- title: What dialing in means
format: slides
minutes: 5
- title: Adjusting grind size
format: demo
minutes: 8
practice: Pull three shots at different grind sizes and note the tasteSome points about this file:
- Section titles name a topic, while the
outcomeline names a result. Keep both. The title is what learners see in the course menu, and the outcome is what you hold yourself to. - Lecture titles are specific. "Adjusting grind size" tells a learner what they will get, and "More tips" does not.
- The
practicefield sits on the section, not on a lecture, because here the task covers the whole section. If a task supports one lecture only, put it inside that lecture entry.
Syntax traps in YAML
A structured file brings its own failure modes. These are the ones that most often break an outline.
- Colons in titles.
title: Grinding: coarse to fineis invalid because of the second colon. Wrap the title in quotes:title: "Grinding: coarse to fine". - Indentation. YAML uses spaces, and a lecture indented one level too far silently becomes part of the wrong item. Use two spaces and never tabs.
- Values that change type.
minutes: 05orminutes: 5 mincan load as something other than the integer 5. Write bare integers only. - Special words. An unquoted
yes,no, oroncan load as a boolean in some YAML parsers. Quote any title that could be read this way. - Duplicate keys. Two
lectures:keys under one section can lead to one being silently dropped by some parsers. Keep one list per section.
A script that loads the file catches most of these immediately, because loading fails or produces the wrong types. That is a good reason to run the check early and often.
Checking the outline with a script
Counting by hand works for six lectures and fails for sixty. A short script can check the rules you decided in earlier chapters. The one below reads the file and reports these problems:
- missing section outcomes
- sections with no lectures
- unknown formats
- lengths outside your chosen range
servesids that don't exist- course outcomes with no section behind them
It also prints section totals and the course total.
import sys
import yaml
ALLOWED_FORMATS = {
"talking head",
"slides",
"demo",
"screen-free demo",
"screencast",
}
MIN_MINUTES = 2
MAX_MINUTES = 10
def check(course):
problems = []
known = {o["id"] for o in course.get("outcomes", [])}
covered = set()
for sec in course.get("sections", []):
name = sec.get("title", "(untitled section)")
if not sec.get("outcome"):
problems.append(f"{name}: section has no outcome")
for oid in sec.get("serves", []):
if oid not in known:
problems.append(f"{name}: serves unknown outcome '{oid}'")
covered.add(oid)
lectures = sec.get("lectures", [])
if not lectures:
problems.append(f"{name}: section has no lectures")
for lec in lectures:
title = lec.get("title", "(untitled lecture)")
minutes = lec.get("minutes")
if lec.get("format") not in ALLOWED_FORMATS:
problems.append(f"{name} / {title}: unknown format '{lec.get('format')}'")
if not isinstance(minutes, int):
problems.append(f"{name} / {title}: minutes must be a whole number")
elif minutes > MAX_MINUTES:
problems.append(f"{name} / {title}: {minutes} min, consider splitting")
elif minutes < MIN_MINUTES:
problems.append(f"{name} / {title}: {minutes} min, consider merging")
for oid in sorted(known - covered):
problems.append(f"outcome {oid} is not served by any section")
return problems
def report(course):
grand_total = 0
for sec in course.get("sections", []):
lectures = sec.get("lectures", [])
total = sum(l["minutes"] for l in lectures if isinstance(l.get("minutes"), int))
grand_total += total
print(f"{sec.get('title', '(untitled)')}: {len(lectures)} lectures, {total} min")
print(f"Course total: {grand_total} min")
if __name__ == "__main__":
path = sys.argv[1] if len(sys.argv) > 1 else "outline.yaml"
with open(path, encoding="utf-8") as f:
course = yaml.safe_load(f)
report(course)
issues = check(course)
for issue in issues:
print("review:", issue)
sys.exit(1 if issues else 0)Install the parser with pip install pyyaml, save your outline as outline.yaml, and run python check_outline.py outline.yaml. For the espresso outline above, the output is:
Getting started: 2 lectures, 9 min
Dialing in a shot: 2 lectures, 13 min
Course total: 22 minNo review: lines appear, and the exit code is 0. The nonzero exit code on problems means you can also run the script in an automated check if you keep the outline in a repository.
How the pieces fit together
The outline file sits in a small loop: you write it, a check reads it, and the report tells you what to change.
The next chapter covers the review step in detail. Here the point is that the document makes the loop cheap. Fixing a lecture that is too long takes one edit and one re-run, where fixing it after recording means re-shooting it.
Choosing limits for your checker
The numbers in the script are decisions, not facts. MAX_MINUTES = 10 fits a course of short lectures for beginners. A course of conference-style talks might allow 20 minutes. Choose the limit from your content and audience, then write it down in the script so every lecture is tested against the same rule.
Treat flags as prompts for a decision, not as errors that must go away. Some cases where a flagged lecture is fine:
- A long demo that can't be cut. A twelve-minute lecture that follows one continuous task may be better whole than split into two lectures that break the flow. Add a
notesentry explaining why, and consider raising the limit for that format only. - A very short lecture that is an orientation. A one-minute welcome is normal. If it triggers your minimum, either lower the minimum or exempt a lecture marked as an introduction.
- A rough estimate. If a length is a guess, the check is only as good as the guess. Replace estimates with real timings once you've recorded a draft.
Per-format limits are a natural extension. Store a dictionary such as {"slides": 8, "demo": 12} in place of one MAX_MINUTES, and look up the limit by the lecture's format.
Edge cases to handle in the file
- Optional lectures. If some content is bonus material, add a
required: falsefield and decide whether it counts toward the course total. Keep the rule consistent, and say so in the file. - Resources and downloads. A worksheet that learners download is not a lecture and has no runtime. List it under
resourcesso it doesn't distort the minute totals. - Quizzes and assignments. These take learner time but not recording time. Track them in a separate field, such as
assessment, and don't add them to lecture minutes. Otherwise your recording estimate will be too high. - Renaming and reordering. The order of the list is the order learners see. Moving an entry up or down changes sequencing, so make such edits deliberately and re-run the check afterwards.
- Outcome ids. Once other sections refer to
O2, don't renumber it. Add new outcomes with new ids, and remove old ones only after you remove everyservesreference to them. The script will point out any you miss.
Keeping the file useful over time
Store the outline where you can see its history, such as a Git repository. A history shows when you split a lecture or dropped a section, which helps when you wonder why a decision was made. Commit after each meaningful change, with a message that says what changed and why.
Keep the outline in step with the recorded course. If you merge two lectures during recording, update the file the same day. An outline that no longer matches the course stops being a source of truth, and nobody will trust it.
Summary of the working model
- Pick one set of fields and use it on every entry at every level.
- Make every value that you want to sum a whole number.
- Link sections to course outcomes with ids, so gaps show up as a list.
- Treat checker flags as prompts for a decision. Record the reason when you decide to keep a flagged lecture.
- Keep the file under version control and update it whenever the course changes.
Exercise
You add a new section to outline.yaml. It has an outcome and three lectures, but the check prints "outcome O3 is not served by any section" even though the new section is about O3. What is the most likely cause, and how do you fix it?
Show answer
The new section probably has no serves entry, or the entry doesn't include O3 (for example, it lists O2 by mistake or misspells the id). The script only counts an outcome as covered when a section's serves list contains its id. Add serves: [O3] to the new section and re-run the check.
Exercise
A lecture entry reads minutes: 7 min. What happens in the script, and what should you write instead?
Show answer
YAML loads 7 min as the string "7 min", not an integer. The script reports "minutes must be a whole number" for that lecture and leaves it out of the section total. Write minutes: 7.
Exercise
Your course has a 12-minute lecture that follows one uninterrupted task, and the checker flags it for exceeding a 10-minute limit. Name two ways to handle the flag, and say what you should record either way.
Show answer
You can split the lecture at a natural pause, or keep it whole and either raise the limit for the demo format or exempt this lecture. Either way, record the decision and its reason in a notes field so that a later reviewer does not repeat the same question.