Programming tools: editors, compilers and online environments
To write and run a program you need an editor (where you type the code), a compiler (which turns the code into a program) and a way to run the program. Here are the free tools we recommend to students – for working at home, at school and for preparing for competitions.
How to read: the page is an overview for students and teachers; at the end there is a short quiz, and the links lead to lessons on this site where the topic is learned in detail.
What is what
| Term | What it does | Example |
|---|---|---|
| editor | you write the code (text) in it | VS Code, Notepad++ |
| compiler | turns C/C++ code into an executable program | g++ (GCC), clang |
| interpreter | runs the code line by line | Python |
| IDE (development environment) | editor + compiler + running + finding errors in one place | Code::Blocks, Visual Studio, IntelliJ, Thonny |
| online environment | everything works in the browser, without installation | Petlja, OnlineGDB, Replit |
For C++ and competitions
| Tool | For whom | Note |
|---|---|---|
| Code::Blocks | beginners, Windows | download the "mingw-setup" version – the g++ compiler comes with it |
| Visual Studio Code | more advanced | a light editor; for C++ you need to install g++ and the C/C++ extension |
| Petlja | everyone | tasks with automatic checking and competitions (in Serbia) – works in the browser |
| OnlineGDB | when nothing is installed | running C, C++, Java and Python in the browser |
| Compiler Explorer | the curious | shows how the compiler translates the code |
For other languages
| Language | Recommendation |
|---|---|
| Python | Thonny (for beginners, has step-by-step execution), IDLE, VS Code |
| Java | Processing (graphics and animations), IntelliJ IDEA Community, NetBeans |
| web (HTML, CSS, JavaScript) | VS Code + a browser (Chrome/Firefox, the "Inspect" tool) |
| micro:bit | MakeCode (blocks), micro:bit Python editor |
| Arduino, ESP32 | Arduino IDE; MicroPython with Thonny |
See how a program runs
The site Python Tutor (it also works for C, C++ and Java) runs a program step by step and draws the variables, arrays and function calls. It is excellent for understanding loops, recursion and pointers – and for finding an error when you "do not know why" the program gives a wrong result.
Keeping code: Git and GitHub
When projects grow, it is useful to keep the history of changes. Git remembers every version of the code (you can go back to yesterday's), and GitHub keeps the code on the internet and makes teamwork possible. Three commands are enough to start:
git add . # prepare all changed files
git commit -m "Add task 3" # remember the version with a description
git push # send it to GitHub
GitHub offers free benefits for students and teachers through the GitHub Education program.
- For C++ on Windows install Code::Blocks with the compiler included (mingw).
- Keep your code files in a separate folder, with clear names (e.g. task_03_loops.cpp).
- Learn the editor's shortcuts: running (F9 in Code::Blocks), saving (Ctrl+S), comment (Ctrl+/ in VS Code).
Check your knowledge
Open the quiz
Programming tools
1. What does a compiler do?
2. Which tool shows how a program runs step by step?
3. What is Git for?
