Thursday, August 19, 2010

Comparison of programming paradigms

Comparison of programming paradigms -- Main paradigm approaches


Imperative programming - describes computation in terms of statements that change a program state

Functional programming - treats computation as the evaluation of mathematical functions and avoids state and mutable data.

Procedural programming / structured programming - specifying the steps the program must take to reach the desired state

Event-driven programming - the flow of the program is determined by events—i.e., sensor outputs or user actions (mouse clicks, key presses) or messages from other programs or threads.

Object oriented programming (OOP) - uses "objects" – data structures consisting of datafields and methods together with their interactions – to design applications and computer programs.

Declarative programming - expresses the logic of a computation without describing its control flow

Automata-based programming - in which the program or its part is thought of as a model of a finite state machine or any other formal automata.

No comments: