Introduction
How Strata works: focused lessons, runnable examples, interactive demos, search and progress tracking.
Updated
Strata is a curriculum for people who build software. Every lesson is written like good reference documentation: short sections, precise language and examples you can run. This page explains how lessons are put together so you can get the most out of each one.
How lessons are structured
Each lesson covers one idea in depth. The sidebar on the left shows where it sits in the curriculum, and the table of contents follows you as you read, highlighting the section you are in. On smaller screens the table of contents folds into a bar at the top of the page.
- Concept first. Each section explains the idea in plain language before showing any code.
- Runnable examples. Code samples are complete enough to copy, and playgrounds let you edit and run them without leaving the page.
- Checkpoints. Callouts flag the mistakes people make most often, so you learn them here instead of in production.
Reading code examples
Code blocks show the file name or language in their header. The copy button grabs the whole snippet, and highlighted lines point at the part that matters most.
export function greet(name: string): string {
const trimmed = name.trim()
return trimmed ? `Hello, ${trimmed}!` : 'Hello, stranger!'
}Examples in several languages
When an idea applies across languages, examples come in tabs. Your choice is remembered: pick Python once and every language example on the site switches to Python.
function sumOfEvens(numbers) {
return numbers
.filter((n) => n % 2 === 0)
.reduce((total, n) => total + n, 0)
}
sumOfEvens([1, 2, 3, 4, 5, 6]) // 12Run code in the browser
Playgrounds are small editors with a console underneath. Change the code and press Run, or use Ctrl Enter (⌘ Enter on a Mac). Code runs in an isolated background thread, so a mistake like an endless loop is stopped after a few seconds instead of freezing the page.
Interactive demos
Some lessons include live components. They are real code running on this page, not recordings. Switch to the Code tab to read the source and use the reset button to start over. The accessibility lessons, for example, let you operate every demo with the keyboard alone.
Callouts
Short notes sit beside the main text when something deserves extra attention. There are four kinds, and each one means something specific.
Keyboard shortcuts
Tracking your progress
At the end of every lesson there is a Mark as complete button. Completed lessons get a check in the sidebar, each track shows how far along you are, and the curriculum page sums it all up. Progress is saved for this browser, so you can close the tab and pick up where you left off.
Where to go next
- Set up your environmentInstall Node.js, a package manager and an editor in about ten minutes.
- Values, types and equalityStart the JavaScript track with the building blocks of every program.
- Semantic HTML firstSee how much accessibility you get for free from the right elements.
- Open the playgroundA full screen editor for experiments, with examples to start from.
Finished this lesson?
Mark it complete to track your progress across every track in the curriculum.