Tek Eye Logo

Tek Eye

What is Computer Programming?

A computer is a complex man-made machine, and computers are everywhere. Nearly all new electronic devices have some form of computer. People use computers without giving it a second thought: Cash Machines (ATMs), Mobile Phones, Washing Machines, Calculators, Cameras, Lifts, the list is very long. They are very useful devices, but computers are also dumb. Even though they appear to be wonderfully useful machines they require a running program for them to do anything worthwhile.

Computers Need Programs

A Program Makes a Computer Useful, Computers Need Programs

A recipe, which is a list of ingredients and instructions, is followed to produce a tasty dish of food. A computer will follow a program, which is a very complicated list of instructions and data (the ingredients), in order to do work and be useful to us. Programs are crafted by developers using a computer language. The computer language is used to code the program. The act of coding is to write the program. Therefore a piece of code is a piece of a computer program written in a particular computer language. Hence a developer is sometimes called a coder or a programmer. There are many computer languages that can be used. A developer will often specialise in their favourite language.

A new computer will come with the programs that operate the screen, keyboard, disks, Wi-Fi, Internet, sound, mouse, USB ports and so on. These programs are refered to as the operating system. Common operating systems are Windows, OS X (on Apple Macs), Android and GNU Linux (such as Ubuntu).

A program can be broken up into several sections, often referred to as a library. Each library contains sections of code that do related tasks, such as drawing boxes on the screen, or drawing text on the screen, or providing buttons to press, or communicating with the Internet. There are hundreds of things a program needs to do and often different programs will have common functions, such as using buttons, or menus. Developers will keep a set of libraries of useful functions and reuse them in new programs to save time. Often libraries provided by other developers or companies will be used.

Programs are compiled (by a compiler which is also a program) from the computer language into the raw instructions that the central processing unit (CPU) at the heart of the computer understands. The CPU, or simply processor, is sometimes called the computer's brain. It is not like our brain, but it is good at processing numbers and following instructions, and good programs can make a computer appear to be very clever.

Machine Assembly Language

Different processor families understand different raw instructions, so the compiler will produce a final program to match a specific processor. The program loaded and stored in the computer is referred to as software. The screen, keyboards, circuits and casing of the physical computer is the hardware and is not easily changed. However, the program running inside the computer can be changed, hence software.

For a further explanation on programming read What is Programming? at About.com. Some history on programming can be found under Computer programming on Wikipedia.

Images used in this article are in the public domain.

Author:  Published:  Updated:  

markdown CMS Small Logo Icon ↓markdown↓ CMS is fast and simple. Build websites quickly and publish easily. For beginner to expert.

Articles on:

Android, HTML, ↓markdown↓ CMS, VPS, Computing, Computer History