October 23, 2011

Types of Computer Programming Languages

We learnt in the previous class about what a computer agenda and programming means.

We thus know that we need a language to be able to "talk" or characterize with a computer. There are three basic types of programming languages. A computer can any way understand Only machine Language directly. The earliest computer programs were written in machine language.

Basic Microcontroller Programming

Machine Language: is expressed in binary using only 0 and 1.

Advantages:

  • Directly understandable by the computer
  • Processing and results were highly fast

Disadvantages:

  • Being represented in Binary form, the codes were was very difficult to learn and understand by humans
  • All the data and instructions had to be manually transcribed into machine Language (Binary Form) and all results had to be decoded from machine Language to Human Readable form
  • Coding and Decoding took a long time
  • Length of the agenda used to be heavy and subsequently resulted in errors

Assembly Language: this language applied the use of Mnemonics (human memory aids) with restricted use of machine Language. These aids came in the form of abbreviations for accepted repeated functions such as Ad or Add for addition, Sub for subtraction, Hlt for halting or stoping the program, etc. It also started the use of Octal or Hexadecimal codes as short hands for Binary codes.

Advantages:

  • Easier code as compared to binary (Machine Language)
  • Shorter programs

Disadvantages:

  • Lack of uniformity: Abbreviations used by Assembly Language differed from machine to machine. Thus, each assembly language code was restricted to a singular machine and required a Translator to convert it to a machine usable form

High Level Language (Hll): transcribe programs as "statements" using minute vocabulary from English. Examples of High Level Languages are - Basic, Pascal, Fortran, Cobol, Algol, Coral-66, Forth, etc. Infact, what we use today as programming languages are all examples of High Level Languages.

Advantages:

  • Uniformity achieved: overrides the deficiency of machine dependent code
  • Use of English with allowable syntax made it easier to write programs
  • Programs written in High Level Languages are much shorter, versatile and faster to work with and debug

We come to the end of our today's lesson. Next we take a quick look into a few more basic but foremost concepts that help comprehension the belief of programming such as translators, algorithms, flowcharts, etc before we take to writing computer programs!

Types of Computer Programming Languages

Barometric Pressure Sensors