大象传媒

Programming languages and Integrated Development Environments - OCRIntegrated development environments

Translators are needed to translate programs written in high level languages into the machine code that a computer understands. Tools exist to help programmers develop error-free code.

Part of Computer ScienceComputational thinking, algorithms and programming

Integrated development environments

Writing large can be a complex task. To help the programmer write clear, , various tools exist:

  • automatic line numbering
  • error trapping
  • colour coding
  • breakpoints
  • tracing
  • auto-correct
  • auto-suggestion
  • auto-indent

Some (or all) of these tools are often gathered together in software known as an .

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 in order to run a program. A virtual machine is an 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 occurs, or at which line in a program an error is generated. This is known as error trapping.