Professional Documents
Culture Documents
programming.
Programming Paradigms
A Programming paradigm is a model for a class of Programming Languages that share a set of common characteristics and its differences
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
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
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
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