What Is a Programming Language?
How people and computers talk to each other
- say why humans need a special language to talk to computers,
- describe the gap between human language and machine language,
- explain the idea of high-level and low-level languages in simple words.
1. Why do we need a language at all?
When you want a friend to do something, you use words: "Please pass the ball." Your friend hears the words, understands what they mean, and acts.
A computer is different. It is a very fast machine, but it cannot understand our words the way a person does. If you just talked to it out loud in plain English, nothing would happen. To tell a computer what to do, we need a language it can work with — a set of clear instructions we write down. That is what a programming language is for.
So a programming language is like a shared way of talking that sits between you and the computer. You write in it, and the computer (with a little help) turns it into action.
2. The computer's own language
Deep inside, a computer is full of tiny switches. Each switch can be off or on. We write "off" as 0 and "on" as 1. That is the whole alphabet the computer really uses — just 0 and 1.
This on/off language is called machine language (some people call it binary, because bi means "two"). A message to the computer might look like 1 0 1 1 0 0 1. To the computer, those 0s and 1s mean something. To a person, they are almost impossible to read!