Integrated development environments
Writing large programSequences of instructions for a computer. can be a complex task. To help the programmer write clear, maintainable codeProgramming code that is easy to understand and amend., various tools exist:
- editorA program that allows the writing and amending of code.
- runtimeThe period when a computer program is executing or running.
- automatic line numbering
- error trapping
- colour coding
- breakpoints
- variableA memory location within a computer program where values are stored. tracing
- auto-correct
- auto-suggestion
- auto-indent
- interpreterA program that translates high-level programming languages into machine code. Programs can either be interpreted or compiled.
Some (or all) of these tools are often gathered together in software known as an integrated development environment (IDE)A suite of tools that helps a programmer to write error-free, maintainable code..
Many brands of IDE exist:
- Python comes with a simple IDE called IDLE.
- Eclipse and Netbeans are two fully featured IDEs often used for programming in Java, JavaScript and HTML.
- Visual Studio is an IDE largely designed to help programmers in Visual Basic and C#.
The choice of IDE is down to the personal preference of the programmer. Some programmers enjoy the variety of tools offered by some IDEs, while others prefer a simpler, bare-bones approach.
To read more about maintainability, see the guide.
Editors
Editors are software which allow programmers to write and edit code. Editors are often fairly simple, but usually offer facilities such as:
- automatic line numbering
- colour coding
- auto-correct
- auto-suggestion
- auto-indent
These tools help to improve the readability of code. However, they do not usually help to identify errors.
Runtime environments
A runtime environment (RTE) is special software that allows a program to run on a computer, even if it is not designed to run on it. It works on different platforms, meaning a program can be developed on different systems and still work.
An RTE creates a virtual machine A software implantation of another computer system or program for another machine. in order to run a program. A virtual machine is an emulationA software simulation of a computer system that can be made to run on another computer. of a computer system that can be made to run on a different computer. This means a programmer can concentrate on program development rather than understanding how different computer systems actually work.
A common RTE is the Java Runtime Environment. This RTE allows Java programmers to design programs on one platform, but to be able to run them on many.
Debugging tools
Debugging tools help programmers to locate and fix errors:
- Breakpoints enable a program to be paused or stopped at predetermined points. The programmer can then examine different parts of the running program, such as the values held in variables or the status of conditions. This information tells the programmer whether or not the program is working as expected.
- Variable tracing lets the programmer see the changing values of variables as the program runs. Again, this enables the programmer to check if the program is functioning as expected.
- Some IDEs pinpoint exactly where a syntax errorError in a program resulting from code not following syntax rules governing how to write statements in a programming language. occurs, or at which line in a program an error is generated. This is known as error trapping.