← Learn shelf

Data types (yes, really)

Foundations · ~5 min · sample content

You do not need to write a for loop. You do need to know that "42" and 42 are not the same thing to a computer — or to an AI that is assembling one for you.

Data types are the labels on the boxes. Get them wrong and everything downstream gets weird: sorting that looks alphabetical when you wanted numeric, dates that break, APIs that reject your payload with a shrug.

The short list

How this helps with AI

When you brief an AI, say the shape you want: “return a list of objects with name (string) and score (number).” That one sentence prevents a surprising amount of improvisation.

Spectrum wisdom: even on 1K of RAM, you knew if you were storing a number or a string. The constraint taught clarity. AI has more RAM than you can shake a stick at — clarity is still the scarce resource.