The Art of Instructions

What is
Programming?

Programming is the way we tell a computer what to do. It is like writing a recipe, but for a machine that follows every word perfectly.

Programming is
Communication

Computers aren't smart; they are just very fast. They need a human (the programmer) to provide a list of instructions called Code.

The Recipe Analogy

  1. 1. Start with raw ingredients (Data)
  2. 2. Follow steps in order (Algorithm)
  3. 3. If the oven is too hot, stop (Conditionals)
  4. 4. Repeat for 10 cookies (Loops)
if (userIsHungry) {
  makePizza();
  // This is a program!
} else {
  dance();
}

The 4 Pillars of Code

x

Variables

A container to store information (like a name or score).

let score = 100;
?

Logic

Allows the computer to make decisions (If/Then).

if (score > 50) { ... }

Loops

Doing the same thing over and over until finished.

repeat(10) { ... }
f()

Functions

Reusable blocks of instructions for tasks.

function jump() { ... }

Visualizing Execution

In this 3D model, the glowing paths represent Data Flow. Every decision in code creates a "fork" in the path.

Flow Speed

Drag to orbit. Scroll to zoom. Observe how logic gates process inputs.

Interactive Logic Lab

lightStatus =
if (lightStatus == "ON") {
  bulb.glow();
} else {
  bulb.dark();
}
💡
System Output
Idle