
Coding Education
What Is Coding? Definition, How It Works, and Examples

Bayu Nugraha
Children's Coding Specialist

Coding is the process of writing instructions (called "code") that a computer can understand and run, using a programming language such as Python, JavaScript, or Scratch. In short, coding is how humans "talk" to a computer to make it do something — from displaying a website to running an app or moving a character in a game.
The terms coding and programming are often used interchangeably. Technically, coding is part of programming: coding focuses on writing lines of code, while programming covers the broader process — designing, writing, testing, and fixing.
What Coding Is, Simply
Think of a cooking recipe: you write step-by-step instructions to make fried rice. Coding works exactly the same — except the "reader of the recipe" is a computer, and the result can be an app, a website, or a game.
Three basic elements in almost every piece of code:
- Instructions (commands): one specific action, e.g. "print the word Hello" or "add two numbers".
- Sequence: the computer runs instructions top to bottom, one at a time.
- Logic (conditions & loops): code can make decisions (if… then…) or repeat steps many times.
A computer doesn't "think" on its own — it does exactly what is written. That's why the core of coding is really logical, structured thinking, not just memorising code.

