You are on page 1of 8

Whats Paradigm

A Greek word meaning EXAMPLE Commonly used to refer to a category of

entities that share a common characteristics. Software paradigm, PL paradigm etc.

A programming paradigm is a paradigmatic style of

programming.

Provides (and determines) the view that the

programmer has of the execution of the program.

Different programming languages advocate

different programming paradigms.

Some languages are designed to support one

particular paradigm, while other programming languages support multiple paradigms

Programming Paradigms

A Programming paradigm is a model for a class of Programming Languages that share a set of common characteristics and its differences

The main programming paradigms


We identify four main programming paradigms and

a number of minor programming paradigms A main programming paradigm stems an idea within some basic discipline which is relevant for performing computations Main programming paradigms The imperative paradigm The functional paradigm The logical paradigm The object-oriented paradigm

Programming Paradigm Categories


Imperative Describes computation in terms of a program state and statements that change the program state. Most computer languages are in the imperative style. Key Features : Stored memory , sequencing, selection, iteration, array and pointers. Example : FORTRAN, COBOL, Pascal, Algol, BASIC

First do this and next do that

Functional Functional programming emphasizes the definition of functions. Functional programming languages have largely been emphasized in academia rather than in commercial software development. Lambda calculus forms the basis of almost all functional programming languages today. Key features : No mutable variables, No Iteration, function and expression, recursive. Example : Haskell, Miranda, LISP, Scheme

Evaluate an expression and use the resulting value for something

Logic use of pattern-directed invocation of procedures from assertions and goals. The point of logic programming is to bring the style of mathematical logic to computer programming. Logic provides a way to prove whether the question is true or false. Key features: No mutable variables, Statements are logical predicates, Every statements are either succeeds or fails, Recursive. Example : PROLOG

Answer a question via search for a solution

Object Oriented Based on imperative style with added data + abstraction and encapsulation. Revolutionary concept in software development. Key Features :Abstraction, Encapsulation, Polymorphism, Inheritance Example : Smalltalk , Java

Send messages between objects to simulate the temporal evolution of a set of real world phenomena

You might also like