StoicBuilder

The Handbook Enchiridion

221 short cards, one idea each, ending with what to tell your agent.

24 cards, sorted A–Z
Ithe Ludus

Arrays

An ordered list of values, counted from zero.

Has lesson
Ithe Ludus

Async and promises

Code that waits for something slow without freezing the page.

Has lesson
Ithe Ludus

Callbacks

A function you hand to other code to run later.

Card only
Ithe Ludus

Conditionals

Code that picks a path: if this, do that, otherwise something else.

Has lesson
Ithe Ludus

Data types

Text, number or true/false: what kind of value it is.

Card only
Ithe Ludus

Dates and time zones

Why a date can shift by a day between server and screen.

Card only
Ithe Ludus

Destructuring and spread

Shorthand for pulling values out of objects and copying them.

Card only
Ithe Ludus

Functions

A named, reusable recipe: inputs in, result out.

Has lesson
Ithe Ludus

Imports and modules

How one file borrows code from another file or package.

Card only
Ithe Ludus

JSON

The text format apps use to send data to each other.

Card only
Ithe Ludus

Loops

Code that repeats a step for every item in a list.

Has lesson
Ithe Ludus

Map, filter and reduce

Three ways to turn one list into another list or one value.

Card only
Ithe Ludus

Nested data

Objects inside arrays inside objects: data with layers.

Card only
Ithe Ludus

Null and undefined

JavaScript's two ways of saying there's nothing here.

Card only
Ithe Ludus

Objects

A bundle of named values that describe one thing.

Has lesson
Ithe Ludus

Operators and comparisons

The symbols that do maths and compare values: +, ===, &&.

Card only
Ithe Ludus

Reading errors

How to get the useful part out of a red error message.

Has lesson1 ask
Ithe Ludus

Regular expressions

A compact pattern language for matching and checking text.

Card only
Ithe Ludus

Scope

Where in the code a name exists and can be used.

Card only
Ithe Ludus

Stack traces

The trail of function calls that led to an error.

Card only
Ithe Ludus

The terminal

A text window where you type commands to your computer.

Card only
Ithe Ludus

TypeScript types

Labels that say what shape a value should have.

Card only
Ithe Ludus

Value vs reference

Why changing a copy sometimes changes the original too.

Has lesson
Ithe Ludus

Variables

A name that holds a value your code reuses.

Has lesson