What a computer is
A computer stores everything as bits and is built from two-state switches.
topic 02
Start with no CS theory. Finish understanding how a computer runs your code and what every programming construct really means.
A computer stores everything as bits and is built from two-state switches.
Memory is a long row of numbered cells; an address is the number, a value is what sits there.
The CPU repeats one loop forever: fetch an instruction, decode it, execute it.
High-level code is translated — compiled or interpreted — into the instructions the CPU runs.
Bits mean nothing alone; a type is the rule that says how to read them.
A variable is a named memory cell; assignment changes what it holds.
Conditionals and loops are the CPU choosing which instruction to run next.
Every call pushes a frame onto the stack; returning pops it back off.
Arrays are contiguous cells; objects are labelled cells — both are layouts in memory.
Bundling data with the operations on it lets you stop thinking about the machine.
An error is the machine reporting it cannot continue; the stack trace says where.
Async exists because the CPU must not sit idle while a slow device answers.
Every unit, from the underground to the orbit. Base CS from zero is one constellation in the atlas — climb another topic and watch the next one light up.