Computer Coding
The process of writing instructions for a computer to follow using a programming language is known as computer coding.
NoteComputer coding is also known as programming.
Uses of computer coding
Computer coding is used to create software that performs specific tasks. This software can be classified into two categories:
- System Software: Manages the computer's hardware and provides a platform for running application software.
- Application Software: Performs specific tasks for users, such as word processing, web browsing, or gaming.
Forms of computer coding
There are three forms of coding:
- Machine code
- Assembly
- Programming languages
Machine code
- Binary code that represents the instructions that directly tell the computer what to do.
- The binary signals represent relevant electric signals given to hardware components.
Assembly
- Also known as assembly language or assembler, it is a very fast and very low-level language that the computer can directly translate to machine code.
- There are many different assembler types, and usually, many different CPUs have different assembler syntaxes.
Try to research the differences between different assemblers, such as MASM and NASM, and write a short outline of the differences and similarities.
Programming languages
- The most used form of coding. Each programming language is a unique set of rules and syntax for expressing instructions that will eventually be turned into machine code and ran by the computer.
- By the level of control, programming languages are split into two types:
- Low-level: These languages offer more control over the computer system and are usually faster, but are more complex to use.
- High-level: These languages are much more human-readable and easy to use, and offer more resources, but offer less control over the hardware and tend to be slower than low-level languages.
- By the way of turning language syntax into machine code, programming languages are split into two main types:
- Compiled: These languages use compilers, which turn the entire source code into machine code to be directly used and ran by the computer.
- Interpreted: These languages use interpreters, which turn the individual instructions into machine code during runtime, one at a time.
High-level languages are translated into machine code using compilers or interpreters.
Self review- What are the two main categories of software?
- Can you name a high-level programming language and its use case?
- Why might a programmer choose to use a low-level language?