When you write code, you will probably use a language such as Python, Basic, Java, C# etc. These are called high level languages. They are written in a form which is easy for a human to understand, using English language keywords such as if, for and while.
There are dozens of different languages which are commonly used in computing, and hundreds more which are slightly less well know. Some languages are specially designed for particular applications, for example SQL is used for database programming. Some languages support a particular style of programming, for example procedural, object oriented or functional programming. In many cases, though, it is a matter of preference which language you use - each has its good an bad points, but whichever one you choose you will be able to create a program that does what you want it to.
Code written in a high level language needs to be translated into machine code - the language the CPU understands. There are 2 main ways of translating high level languages into machine code - interpreting or compiling. We will look these methods in this section.
It is sometimes necessary to write code in lower level languages - code created in this way is more efficient and can do things which aren’t possible in high level languages (such as directly controlling the computer’s hardware devices). But it is difficult and takes a lot longer. Code like this is usually written in assembly language, which is then translated into machine code using an assembler. We will also look at machine code and assembly language in this section.
This topic isn’t yet complete. Join our mailing list to be updated when new sections are added.