Skip to content

Build a Weekly Mini-Course

Davor Minchorov•Beginner•1 to 2 weekends•October 29, 2026

A piano teacher emails each student a video link by hand every week, and the links keep reaching the wrong people at the wrong time. You will build the small tool that shows each student only the lessons released to them so far, on their own schedule, and proves it with a recorded run of a whole course.

The brief

The client

I am a piano teacher in Utrecht. Twice a year I run a six-week jazz chords course for about 25 students, and I take payment by bank transfer myself. The lessons are videos I upload to a video site as unlisted, which means anyone who has the link can watch.

Every Wednesday I open a spreadsheet and email each student the link for their week. It takes me about an hour. Last run I sent week 4 to a student who was still in week 1, and a student who joined late asked me to send all six links at once, so I worked out her dates by hand. Two of the links have since turned up in a group chat outside the course.

I need one place where each student looks at their own lessons, released on their own schedule, and where I can switch a student off.

The problem

The weekly emailing costs about an hour every Wednesday and goes wrong whenever someone joins late or the spreadsheet is misread. Every link in an email is a permanent address. A forwarded link works for anyone, forever, and the teacher cannot take it back.

She needs students to see their own lessons, released on their own schedule, and she needs a student whose time is up, or who was refunded, to see nothing. The fix has to work for a student who joins in week 3 as well as one who joins on the first day.

The client's name and figures are invented for this brief; the rules and the failures are ones that real businesses of this kind work with.

The spec

Requirements

  • Let the teacher create the course with a title, her time zone and its lessons, each with a title, a video link, a place in the order and the number of days after a student's start date that it is released.
  • Let the teacher enrol a student with a name, an email address and a start date, and get back a private access code for that student.
  • Release each lesson at the start of the calendar day, in the teacher's time zone, that falls its release number of days after that student's own start date.
  • Show a student, given their access code, every lesson in order, each marked as released or not yet released, with the date it unlocks when it is not.
  • Give a video link only for lessons that are released, and only while the student's 90 day access window is open.
  • Let the teacher end a student's enrolment so that nothing is shown to that student from then on.
  • Refuse bad input and say which field is wrong.
  • Let the person testing the tool ask what a student would see at a given date and time, so the schedule can be checked without waiting.

Deliverables

  • A running tool that keeps its data after a restart, and a README that takes a reviewer from a fresh clone to the compared run table in 10 minutes.
  • The release rule document with at least six worked examples.
  • A script or command that creates the course with its six lessons and enrols the three students of the final run.
  • Automated tests, code that drives the tool and checks its answers against what you expect, for the edges of the rule, which run with one command.
  • The expected table and the recorded run for three students, committed to your repository.

Out of scope

  • Taking payments or checkout. The teacher is paid by bank transfer. The intermediate project in this domain, Build a Course Shop for a Small Studio, is the next one up.
  • Uploading or hosting video. A pasted link from a video site is enough.
  • Sign-up, passwords and login, for students and for the teacher. An access code is simpler, and real accounts are a topic that has nothing to do with the release rule. The teacher's side (create the course, enrol, end an enrolment) is assumed to run on her own computer. Do not put this tool on the internet, because anyone who can reach it can use the teacher's side.
  • Keeping the test time away from students. The "what would this student see at this time" input exists so the schedule can be checked, and anyone who can use the tool can use it to look ahead. A version for real students would remove it.
  • Sending emails. The teacher passes the code on herself, and mail delivery is a problem of its own.
  • Watch progress, quizzes and certificates. They need data coming in from the student's devices.
  • Several courses, several teachers, cohorts with a seat limit and teacher payouts. One course is enough to hold the rule.
  • Stopping a student from forwarding a link they were shown. Hiding links until release is the goal. Preventing copying is the video host's job and cannot be checked from outside.

Architectural constraints

  • A start date is a calendar date with no time of day. The course has one time zone, named the way the teacher would name it, such as Europe/Amsterdam, and every release is counted in that zone, wherever the server runs or the student sits.
  • A lesson released "7 days after the start" appears at the start of the seventh calendar day in the teacher's time zone, also across a clock change. It does not appear 168 hours after the start of the start date.
  • What a student sees always follows the dates and rules as they stand when the student asks.
  • Access codes cannot be guessed. They are at least 20 characters long and have no link to a name, an email address, a date or the order students enrolled.
  • A video link reaches a student only if the lesson is released and the access window is open. A link that is hidden by the page but present in the response counts as sent.
  • The person or the request can supply the current time, for testing.
  • Bad input is refused, the message names the field, and a refused submission leaves nothing saved.

Prerequisites

You can write a small program in a language of your choice and have saved data to a database or a file at least once. You do not need to know how time zones behave or how to write an automated test. You do not need to know how a piano teacher runs a short online course; the first Phase explains the business and the words the brief uses. You pick the language, and whether the result is a web page, an API that other programs call by sending requests, or a command-line tool: every Checkpoint says what a person does and what they see or get back, so it can be checked in any of the three. Knowing how to run a program from a terminal helps.

Create a free accountSign in

Free to start. An account is what keeps track of the checkpoints you finish.

Phase 1

Describe the course and enrol students

Produces the release rule written down with worked examples, a saved course with six lessons, and enrolled students with private access codes. Leaves showing anything to a student for later.

Research

Implementation

Implementation

Architectural walkthrough

How a piano teacher runs a short online course

A piano teacher in Utrecht runs a six-week jazz chords course twice a year for about 25 students. Students pay her by bank transfer. Each lesson is a video, uploaded to a video site as unlisted, which means anyone who has the link can watch it.

Each week she used to email every student the link for their week. A lesson is released a set number of days after a student's own start date, so a student who joins in week 3 still gets week 1 first. A student's access lasts 90 days from their start date, and she can end a student's access sooner, for example after a refund.

The words this brief uses:

  • Lesson: one video of the course, with a place in the order.

  • Unlisted video: a video that has no public listing but plays for anyone who has its link.

  • Start date: the day a student begins the course.

  • Release: the moment a lesson becomes visible to a student, a number of days after their start date.

  • Access window: the 90 days after a student's start date in which they can watch.

  • Enrolment: a student's place in the course, with a start date.

  • Access code: the private code a student uses to see their own lessons.

Why the schedule rules come first

The teacher's trouble today starts with unwritten rules. Two correct readings of "released a week after you start" disagree on the hour a lesson appears, on whether it is visible at that exact moment or a second later, and on whether the start date is day 0 or day 1. The same questions apply to the end of the 90 day window. Left unsettled, each answer is a coin flip, and the student who loses it sees week 4 on the wrong morning.

The second failure is a course that is only partly there. If one bad lesson in a submission lets the other five through, week 5 never appears for any student, and no message tells the teacher why. She finds out when a student writes to ask where the lesson is.

The third is an access code someone else can guess. The code is all that tells the tool who is asking, so a guessable one lets a student read a stranger's lessons, including lessons that stranger has not yet reached.

Phase 2

Show only what is released

Produces the student's view: lessons in order, video links only for released ones, and access that stops when the window closes or the teacher ends the enrolment. Proves the release and access rules at their edges in one run. Leaves the recorded run of a whole course for Phase 3.

Implementation

Implementation

Testing

Architectural walkthrough

The client's complaint is that links leave her hands too early. A student who opens the tool and finds week 4 while still in week 1 is the same mistake she makes by email, only faster. When the teacher moves a release day, students already enrolled must see the new date, not the one that was true on the day they joined.

A link is sent the moment it reaches the student's device, and access has to stop when the window closes or the teacher ends it.

Phase 3

Prove the schedule holds

Produces automated checks at the edges of the release rule and one recorded run of a whole course for three students. Adds no new behaviour.

Testing

Testing

Architectural walkthrough

A tool that works on an ordinary Wednesday can still fail the teacher twice a year. The moments that expose it are the second before a lesson unlocks, the second it unlocks, the last second of the 90 day window, and the week the clocks change. A check that sits on only one side of an edge misses a tool that is wrong on the other side.

The last Checkpoint compares a recorded run with a table written by hand before the first run.

Architectural walkthrough

A lesson that arrives on the wrong morning

The teacher's spreadsheet fails when someone reads it wrong. A student who joined late gets a date worked out by hand, or a student still in week 1 gets week 4. In the tool the same failure looks different: a screen that disagrees with the calendar, a lesson that appears a day early or late, or an hour out on the two nights a year the clocks change. An hour is small. It is also the difference between a lesson a student was promised at midnight and one that is missing when she opens the page.

When you check your build, ask for a student's lessons the second before a release, the second after, the last second of the 90 day window, and the week of a clock change, in both spring and autumn.

A link that has already been sent

The teacher's complaint is that links leave her hands too early, and the videos are unlisted, so a link works for anyone who holds it for as long as the video exists. A page that carries all six links and hides four has still sent the four. They can be read from the page source or the network traffic, and a forwarded copy cannot be recalled. Save everything a student receives and search it for the links of lessons that are not yet released. A single hit is the failure.

Access that does not stop

A student whose 90 days are over, or who was refunded, who can still open lessons has the course for free, and the teacher finds out when a link appears in a group chat. The same goes for a window that closes a day early or late, and for an enrolment the teacher ended that does not stay ended. Check the last second of the window, and check that an ended student sees nothing at every moment you can ask about.

A course that is only partly there

A submission with one bad lesson that saves the other five leaves a course whose week 5 never appears, with no message to say why. A guessable access code lets a student read a stranger's lessons. Both stay invisible until someone writes to the teacher. Try the bad submission and see whether any course exists afterwards, and try to work out one student's code from another's.

A check that cannot fail

The expected table in the last Phase is the one thing in the build that does not come from your tool. A table copied from the tool's output agrees with the tool whether or not either is right. Write it by hand from the rule before you run anything, and treat any difference between the table and the run as a finding about one of them.

Where it shows if you cut a corner

Four symptoms show a cut corner. A lesson that is missing at midnight in the week of a clock change, or present the second before its release, means the day was counted in hours or in the wrong time zone. A search of everything a student received that finds the link of an unreleased lesson means the page hides links it has already sent. A student at the end of the 90 day window, or with an ended enrolment, who can still open a lesson means access is checked at the wrong moment or not at all. A refused submission that leaves a course with five of its six lessons, or a code that can be worked out from another student's, means the save is partial or the codes follow a pattern.