ENES

Programming language

A precise, written language people use to give instructions to a computer.

A few readable lines of code on the left are translated into rows of ones and zeros that the computer runs

A programming language is a set of words, symbols and rules for writing instructions that a computer can follow. Computers only understand very simple operations expressed as numbers; a language like Python or JavaScript lets a person write if total > 100: apply_discount() instead, and a tool translates that into something the machine can run.

Unlike English or Spanish, a programming language leaves no room for interpretation. Every line has exactly one meaning, and a missing comma can stop a program from running. That strictness is the point: the computer does exactly what it is told, so the instructions have to be exact.

There are hundreds of languages because they make different trade-offs. Some are built for speed and control over the hardware (C, Rust), some for the web (JavaScript), some for being easy to read and quick to write (Python), and some for one narrow job, like querying a database with SQL. Most working programmers know a few and pick the one that suits the task.

Keep in mind

Go deeper

Related terms

More in Software