F453 Computing OCR - Programming Paradigms

key points and examples of generation languages ie first, second etc...

?

History of Programming Paradigms

Programming languages can be classified according to generation as well as type. Programming Paradigms simply means programming methods. there are five generations of languages which are first, second, third, fourth and fifth, and there are four types of types which are Object Oriented (OO) , Procedural, Declaritive and Functional.

1 of 10

First Generation Languages

Key Points;

1) First Generation (In the beginning)

2) Written in Binary or Hex

3) No translation needed

4) Very fast when executed

examples include Binary or Hex.

2 of 10

Second Generation Languages

Key points;

1) Low Level Languages

2) Uses Mnemonics

3) Translation needed

4) Assembler

3 of 10

Third Generation Languages

Key points;

1) High Level Languages

2) Keywords close to Eglish

3) Compile and Interpret

4) Integrated Development Environment (IDE)

such examples include;

BASIC/PASCAL for teaching

COBOL for data processing

FORTRAN for scientists

4 of 10

Fourth Generation Languages

Key points;

1) Limited Training needed

2) Report Program Generator

3) CASE Tools

4) Automatically produce work

A.K.A 4GL

5 of 10

Fifth Generation Languages

Key points;

1) Stores facts and rules

2) Interface

3) Inference engine

4) PROLOG

Examples include PROLOG

expert systems are considered a Fifth Generation language

6 of 10

Procedural/Imperative Languages

  • you tell the computer what it must do
  • programmers writes using the three basic building blocks; sequence, selection, and interation
  • heavy use of procedures and functions
  • hard to find bugs if there are problems with variables in functions/procedures.
7 of 10

Declarative Languages

  • you tell the computer facts and the relationships between those facts
  • then you query those facts with goals and the computer will produce a result by relating to the facts.
8 of 10

Object-Orientated (OO) Languages

  • Objects are defined
  • objects is a real world thing
  • before the programmer writes the program ,they ask;

- what objects exist in the problem area?

- what events can happen to those objects?

- what should happen ,the methods, when a particular event occurs?

9 of 10

Functional Languages

  • geared towards science and enginering applications.
  • Invloves breaking maths problem to the smallest possible units and then writing a set of functions for those units.
  • each function then receives parameters from outside the function , manipulates the parameters mathematically and then outputs parameters to other functions.
10 of 10

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »