Programming languages
The processor does not directly understand text in a programming language; it carries out only machine code (0s and 1s). So a translator is needed. A compiler reads the whole program, translates it into machine code and produces an executable file. An interpreter translates the program line by line while carrying it out and reports an error as soon as it meets one. Popular languages: C – for operating systems and system programs; Java – for computer and Android phone applications (today Kotlin is also widely used for Android apps, and Swift for iPhone apps); JavaScript – for making web pages interactive; PHP – for the server side of dynamic websites; Scratch – a visual language for learning; Python – for many kinds of tasks, data analysis and artificial intelligence. An IDE is a program that joins a text editor, a translator and tools for finding errors. The six stages of creating a program: finding the requirements, design, writing the code, finding errors and testing, putting it into use, and support.
| Language | Use |
|---|---|
| C | operating systems, system programs |
| Java | computer and Android applications |
| JavaScript | making web pages interactive |
| PHP | server side of dynamic websites |
| Scratch | visual language for learning |
| Python | many tasks, data analysis, artificial intelligence |
A pupil wanted to make a small quiz game for the class and asked the computer teacher which language to use. The teacher first asked what the game should do, where it would run and who would use it, and only then suggested a language.
Programmers, system analysts and student learners choose a handy language for the task.
Before choosing any tool, write the requirements of a small program you would like in three lines: what it does, who uses it and where it runs. Do not write any code.
“Choosing a language”: cards show tasks (web animation, game engine, a teaching program for children, artificial intelligence); groups choose the matching language and give a reason.