Customers & growth · Developer marketing
Live coding framework
Use it when
You will write and run code in front of an audience in a talk, stream or webinar, and need a demo that survives nerves, network failures and mistakes.
Skip it when
- Attendees will type along and finish exercises themselves. Use Developer workshop framework.
- You still need the talk's message, slides and rehearsal plan. Use Speaking engagement framework, then plan the demo here.
- Readers will copy the code later without watching. Use the Code sample framework.
- You are planning a whole online session with polls, roles and promotion. Use Technical webinar framework.
- You are running a build event where teams code for prizes. Use Hackathon framework, which this feeds.
What to apply first and what to use instead are listed below.
Approaches
Fully live
You type every line on stage from a rehearsed script.
- Pro The audience sees real reasoning and real errors being fixed.
- Con Typing and talking at once is hard, and any failure costs stage time.
Live with checkpoints
You type the key lines and jump to prepared git commits, snippets or editor templates for boilerplate and recovery.
- Pro The time goes on the code that matters, and you can skip past a failed step.
- Con Jumps confuse viewers unless you say what changed.
Recorded and narrated
You play a silent screen recording of the coding and narrate it live, pausing it with a remote.
- Pro Nothing breaks on the day, and you can face the audience.
- Con Viewers lose the sense that the code is running now, and questions cannot change the demo.
Inputs
- Demo goalThe one thing the audience should see the product do, tied to the talk's message, from the talk plan.
- ScriptEvery command and line of code in order, with the expected output and the points where you stop and explain, on a printout or second device.
- Demo environmentAn offline-capable setup such as a local container or virtual machine, with the editor, font and screen resolution you will use on stage.
- CheckpointsA git repository with one commit per demo step, plus snippets or editor templates for boilerplate.
- Backup recordingsA labeled screen recording of each demo step, stored on the laptop and on a USB stick or cloud drive.
- Venue detailsScreen, connection, microphone and podium setup, from the organizer a few weeks ahead.
Steps
- Cut the demo to the few steps that prove the demo goal, and move long typing and setup into checkpoints or the starting state.
- Write the script with every command, its expected output and where you stop to explain, and mark the checkpoint to jump to if each step fails.
- Build the environment to run offline, mirror the tools the audience uses, raise the font size, turn off notifications and check legibility from the back row.
- Rehearse aloud in the stage setup until you can run it while talking, time each step, and record a run to cut filler and make the backup clips.
- Run it live, saying what you do and why, reading any error aloud, and fixing it or jumping to the next checkpoint within a set time.
- Publish the code and steps after the session, and log what broke and which questions came up for the next run.
Output
A demo pack for one session, with a short log written after it.
- Demo goal and steps with timings
- Script with expected outputs and stop points
- Checkpoint commit for each step
- Backup recording for each step and where it is stored
- Environment and venue checks done
- Errors hit live and how each was recovered
- Audience questions
- Link to the published code
Done when
- Every demo step has a checkpoint and a backup recording.
- The demo runs end to end with the network off.
- The timed rehearsal fits the slot with time left for one recovery.
- The code is published, and its link was shown during the session.
- The log lists every live failure with its recovery.
Measure
Track for each session how many viewers stay through the demo on recordings or streams, the questions asked, and visits to the published repository and signups through the session link over the next 14 days. Compare with your earlier sessions on similar topics and audiences. Also count how often you fall back to a recording, and fix the steps behind repeat failures.
Hypothetical example
A developer advocate at Quillmark, a search API, has a 30-minute slot and a 12-minute demo that indexes documents and runs a typo-tolerant query. She moves setup into a starting commit, scripts six steps with a checkpoint commit for each, and records every step as a clip. She rehearses 15 times in a local container. On stage the venue network drops at step four, but the container runs offline. A typo breaks step five, so she reads the error aloud, fixes it in 40 seconds and finishes on time. The repository gets 210 visits that week.
Common mistakes
- Relying on venue Wi-Fi. Run everything locally and keep a hotspot as a last resort.
- Improvising new code on stage. Stick to the rehearsed script and take audience ideas after the session.
- Narrating every keystroke. Say what you are doing and why, and let the screen show the typing.
- Fighting a broken step for minutes. Set a recovery limit, then jump to the next checkpoint or play the clip.
- Demoing on your own customized setup. Mirror the editor and tools the audience uses, with a large font and plain theme.
Sources
- Pro Tips for Developer Relations · Matt Raible with Trisha Gee, James Ward, Ray Tsang, Aaron Parecki, Heather Downing and others, 2019
- Live Demo: Risks and Rewards · Lorna Jane Mitchell, 2017
- Ten quick tips for teaching with participatory live coding · Alexander Nederbragt, Rayna Michelle Harris, Alison Presmanes Hill, Greg Wilson, 2020
Show all 4 sources
- Live Coding is a Skill · The Carpentries, 2025
By company stage
Apply first
Nothing. You can start here.
Use instead
- Developer workshop framework
Attendees will type along and finish exercises themselves. Use Developer workshop framework.
- Speaking engagement framework
You still need the talk's message, slides and rehearsal plan. Use Speaking engagement framework, then plan the demo here.
- Code sample framework
Readers will copy the code later without watching. Use the Code sample framework.
- Technical webinar framework
You are planning a whole online session with polls, roles and promotion. Use Technical webinar framework.
- Hackathon framework
You are running a build event where teams code for prizes. Use Hackathon framework, which this feeds.
Where it sits
Open the developer marketing roadmapRecommended resources
No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.
Progress is not saved until you have an account. Create a free account