Skip to content
GS-01Beginner4 min read

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.

greet.ts
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]) // 12

Run 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.

welcome.js

Press Control or Command with Enter to run the code. Tab inserts spaces; press Escape and then Tab to leave the editor.

Console

Run the code to see its output here.

Change the list of tracks or the name, then run the code again.

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

ShortcutAction
⌘ KOpen search from anywhere
/Open search when you are not typing in a field
↑ ↓Move through search results
EnterOpen the selected result
EscClose search, a menu or a dialog
⌘ EnterRun the code in a playground
Esc then TabLeave a code editor with the keyboard
On Windows and Linux, use Ctrl wherever a shortcut shows ⌘.

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

Finished this lesson?

Mark it complete to track your progress across every track in the curriculum.