Share
VIDEOS 1 TO 50
Programming Paradigms - Computerphile
Programming Paradigms - Computerphile
Published: 2013/08/30
Channel: Computerphile
Lecture 1 | Programming Paradigms (Stanford)
Lecture 1 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Programming Paradigms, Assembly, Procedural, Functional & OOP | Ep28
Programming Paradigms, Assembly, Procedural, Functional & OOP | Ep28
Published: 2016/12/02
Channel: Avelx
GOTO 2017 • Programming Across Paradigms • Anjana Vakil
GOTO 2017 • Programming Across Paradigms • Anjana Vakil
Published: 2017/05/18
Channel: GOTO Conferences
Programming Paradigms and Language Concepts
Programming Paradigms and Language Concepts
Published: 2015/06/06
Channel: Vadim Zaytsev
Comparing Programming Paradigms
Comparing Programming Paradigms
Published: 2017/06/27
Channel: Source Decoded
Programming With Anthony - Paradigm Soup
Programming With Anthony - Paradigm Soup
Published: 2012/11/21
Channel: Anthony Ferrara
What is PROGRAMMING PARADIGM? What does PROGRAMMING PARADIGM mean?
What is PROGRAMMING PARADIGM? What does PROGRAMMING PARADIGM mean?
Published: 2016/08/29
Channel: The Audiopedia
Lecture 2 | Programming Paradigms (Stanford)
Lecture 2 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
5.1 Programming Paradigm Introduction
5.1 Programming Paradigm Introduction
Published: 2017/01/04
Channel: Ravindra K
What is PROGRAMMING PARADIGM? What does PROGRAMMING PARADIGM mean? PROGRAMMING PARADIGM meaning
What is PROGRAMMING PARADIGM? What does PROGRAMMING PARADIGM mean? PROGRAMMING PARADIGM meaning
Published: 2017/04/02
Channel: The Audiopedia
5.4 Structured Programming Paradigm
5.4 Structured Programming Paradigm
Published: 2017/01/04
Channel: Ravindra K
What is a programming paradigm?
What is a programming paradigm?
Published: 2017/03/09
Channel: Computing Tutor
HTML IS a Programming Language (Imperative vs Declarative) - Computerphile
HTML IS a Programming Language (Imperative vs Declarative) - Computerphile
Published: 2016/06/28
Channel: Computerphile
C++ programming tutorial 09 - C++ - Intro to Programming Paradigms
C++ programming tutorial 09 - C++ - Intro to Programming Paradigms
Published: 2016/07/29
Channel: Chidre'sTechTutorials
RubyConf 2017: 4 Programming Paradigms in 45 Minutes by Aja Hammerly
RubyConf 2017: 4 Programming Paradigms in 45 Minutes by Aja Hammerly
Published: 2017/11/28
Channel: Confreaks
5.3 Procedural programming paradigm
5.3 Procedural programming paradigm
Published: 2017/01/04
Channel: Ravindra K
Programming Across Paradigms
Programming Across Paradigms
Published: 2017/10/02
Channel: Coding Tech
Lecture 19 | Programming Paradigms (Stanford)
Lecture 19 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Programming Languages: The Logic Programming Paradigm - 1
Programming Languages: The Logic Programming Paradigm - 1
Published: 2014/03/18
Channel: RU Computer Science
5.5 OOP Programming Paradigm
5.5 OOP Programming Paradigm
Published: 2017/01/04
Channel: Ravindra K
BJC Lecture 5: Programming Paradigms [1080p HD]
BJC Lecture 5: Programming Paradigms [1080p HD]
Published: 2012/08/29
Channel: Dan Garcia
Programming paradigms and Procedural languages - A Level Computer Science
Programming paradigms and Procedural languages - A Level Computer Science
Published: 2015/11/08
Channel: Yatish Parmar
Lecture 3 | Programming Paradigms (Stanford)
Lecture 3 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Smart Coding: Ep. 2 - Programming Pair
Smart Coding: Ep. 2 - Programming Pair'O Dimes
Published: 2016/01/04
Channel: CoderTheTyler
Lecture 4 | Programming Paradigms (Stanford)
Lecture 4 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Lecture 20 | Programming Paradigms (Stanford)
Lecture 20 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
02 - Programming Paradigms
02 - Programming Paradigms
Published: 2013/08/16
Channel: PickICT
Lecture 11 | Programming Paradigms (Stanford)
Lecture 11 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Lecture 12 | Programming Paradigms (Stanford)
Lecture 12 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
5.2 Monolithic Programming Paradigm
5.2 Monolithic Programming Paradigm
Published: 2017/01/04
Channel: Ravindra K
Javascript tutorial :: Functional Programming:: Functional Paradigm (37/65)
Javascript tutorial :: Functional Programming:: Functional Paradigm (37/65)
Published: 2016/08/11
Channel: dizauvi
Lecture 10 | Programming Paradigms (Stanford
Lecture 10 | Programming Paradigms (Stanford
Published: 2008/07/19
Channel: Stanford
Lecture 16 | Programming Paradigms (Stanford)
Lecture 16 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Lecture 6 | Programming Paradigms (Stanford)
Lecture 6 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Programming across paradigms · Anjana Sofia Vakil
Programming across paradigms · Anjana Sofia Vakil
Published: 2017/08/01
Channel: PolyConf
"An Approach to Dealing with Reference Types in the Generic Programming Paradigm"
"An Approach to Dealing with Reference Types in the Generic Programming Paradigm"
Published: 2017/06/14
Channel: BoostCon
C++ in Hindi  29 OOP Concepts Part 1 Various Programming Paradigms
C++ in Hindi 29 OOP Concepts Part 1 Various Programming Paradigms
Published: 2013/12/30
Channel: Learn & Earn
Lecture 3: Object Oriented Programming (OOP) Paradigm
Lecture 3: Object Oriented Programming (OOP) Paradigm
Published: 2013/06/09
Channel: Ravindra K
02 OOP Paradigm
02 OOP Paradigm
Published: 2016/07/21
Channel: 1341_004_KMM
Programming Languages: The Logic Paradigm and Prolog - 1
Programming Languages: The Logic Paradigm and Prolog - 1
Published: 2014/03/18
Channel: RU Computer Science
Lecture 13 | Programming Paradigms (Stanford)
Lecture 13 | Programming Paradigms (Stanford)
Published: 2008/07/22
Channel: Stanford
ep.6 Programming Paradigm
ep.6 Programming Paradigm
Published: 2016/01/24
Channel: Programming Redux
Lecture 25 | Programming Paradigms (Stanford)
Lecture 25 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Unconventional programming paradigms for the future, now - Carin Meier (Cognitect)
Unconventional programming paradigms for the future, now - Carin Meier (Cognitect)
Published: 2017/10/04
Channel: O'Reilly
Programming Languages: The Logic Programming Paradigm - 2
Programming Languages: The Logic Programming Paradigm - 2
Published: 2014/03/18
Channel: RU Computer Science
Lecture 7 | Programming Paradigms (Stanford)
Lecture 7 | Programming Paradigms (Stanford)
Published: 2008/07/18
Channel: Stanford
Lecture 22 | Programming Paradigms (Stanford)
Lecture 22 | Programming Paradigms (Stanford)
Published: 2008/07/19
Channel: Stanford
Programming Languages: The Logic Programming Paradigm - 4
Programming Languages: The Logic Programming Paradigm - 4
Published: 2014/03/21
Channel: RU Computer Science
What Is Functional Programming?
What Is Functional Programming?
Published: 2015/06/20
Channel: ABitOf OCaml
NEXT
GO TO RESULTS [51 .. 100]

WIKIPEDIA ARTICLE

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Programming paradigms are a way to classify programming languages based on their features. Languages can be classified into multiple paradigms.

Some paradigms are concerned mainly with implications for the execution model of the language, such as allowing side effects, or whether the sequence of operations is defined by the execution model. Other paradigms are concerned mainly with the way that code is organized, such as grouping a code into units along with the state that is modified by the code. Yet others are concerned mainly with the style of syntax and grammar.

Common programming paradigms include:

  • imperative which allows side effects,
  • functional which disallows side effects,
  • declarative which does not state the order in which operations execute,
  • object-oriented which groups code together with the state the code modifies,
  • procedural which groups code into functions,
  • logic which has a particular style of execution model coupled to a particular style of syntax and grammar, and
  • symbolic programming which has a particular style of syntax and grammar.[1][2][3]

For example, languages that fall into the imperative paradigm have two main features: they state the order in which operations occur, with constructs that explicitly control that order, and they allow side effects, in which state can be modified at one point in time, within one unit of code, and then later read at a different point in time inside a different unit of code. The communication between the units of code is not explicit. Meanwhile, in object-oriented programming, code is organized into objects that contain state that is only modified by the code that is part of the object. Most object-oriented languages are also imperative languages. In contrast, languages that fit the declarative paradigm do not state the order in which to execute operations. Instead, they supply a number of operations that are available in the system, along with the conditions under which each is allowed to execute. The implementation of the language's execution model tracks which operations are free to execute and chooses the order on its own. More at Comparison of multi-paradigm programming languages.

Overview[edit]

Overview of the various programming paradigms according to Peter Van Roy[4]:5

Just as software engineering (as a process) is defined by differing methodologies, so the programming languages (as models of computation) are defined by differing paradigms. Some languages are designed to support one paradigm (Smalltalk supports object-oriented programming, Haskell supports functional programming), while other programming languages support multiple paradigms (such as Object Pascal, C++, Java, C#, Scala, Visual Basic, Common Lisp, Scheme, Perl, PHP, Python, Ruby, Oz, and F#). For example, programs written in C++, Object Pascal or PHP can be purely procedural, purely object-oriented, or can contain elements of both or other paradigms. Software designers and programmers decide how to use those paradigm elements.

In object-oriented programming, programs are treated as a set of interacting objects. In functional programming, programs are treated as a sequence of stateless function evaluations. When programming computers or systems with many processors, in process-oriented programming, programs are treated as sets of concurrent processes acting on logically shared data structures.

Many programming paradigms are as well known for the techniques they forbid as for those they enable. For instance, pure functional programming disallows use of side-effects, while structured programming disallows use of the goto statement. Partly for this reason, new paradigms are often regarded as doctrinaire or overly rigid by those accustomed to earlier styles.[5] Yet, avoiding certain techniques can make it easier to understand program behavior, and to prove theorems about program correctness.

Programming paradigms can also be compared with programming models which allow invoking an execution model by using only an API. Programming models can also be classified into paradigms, based on features of the execution model.

For parallel computing, using a programming model instead of a language is common. The reason is that details of the parallel hardware leak into the abstractions used to program the hardware. This causes the programmer to have to map patterns in the algorithm onto patterns in the execution model (which have been inserted due to leakage of hardware into the abstraction). As a consequence, no one parallel programming language maps well to all computation problems. It is thus more convenient to use a base sequential language and insert API calls to parallel execution models, via a programming model. Such parallel programming models can be classified according to abstractions that reflect the hardware, such as shared memory, distributed memory with message passing, notions of place visible in the code, and so forth. These can be considered flavors of programming paradigm that apply to only parallel languages and programming models.

History[edit]

Different approaches to programming have developed over time, being identified as such either at the time or retrospectively. An early approach consciously identified as such is structured programming, advocated since the mid 1960s. The concept of a "programming paradigm" as such dates at least to 1978, in the Turing Award lecture of Robert W. Floyd, entitled The Paradigms of Programming, which cites the notion of paradigm as used by Thomas Kuhn in his The Structure of Scientific Revolutions (1962).[6]

Machine code[edit]

The lowest-level programming paradigms are machine code, which directly represents the instructions (the contents of program memory) as a sequence of numbers, and assembly language where the machine instructions are represented by mnemonics and memory addresses can be given symbolic labels. These are sometimes called first- and second-generation languages.

In the 1960s, assembly languages were developed to support library COPY and quite sophisticated conditional macro generation and preprocessing abilities, CALL to (subroutines), external variables and common sections (globals), enabling significant code re-use and isolation from hardware specifics via use of logical operators such as READ/WRITE/GET/PUT. Assembly was, and still is, used for time critical systems and often in embedded systems as it gives the most direct control of what the machine does.

Procedural languages[edit]

The next advance was the development of procedural languages. These third-generation languages (the first described as high-level languages) use vocabulary related to the problem being solved. For example,

  • COmmon Business Oriented Language (COBOL) – uses terms like file, move and copy.
  • FORmula TRANslation (FORTRAN) – using mathematical language terminology, it was developed mainly for scientific and engineering problems.
  • ALGOrithmic Language (ALGOL) – focused on being an appropriate language to define algorithms, while using mathematical language terminology and targeting scientific and engineering problems just like FORTRAN.
  • Programming Language One (PL/I) – a hybrid commercial-scientific general purpose language supporting pointers.
  • Beginners All purpose Symbolic Instruction Code (BASIC) – it was developed to enable more people to write programs.
  • C – a general-purpose programming language, initially developed by Dennis Ritchie between 1969 and 1973 at AT&T Bell Labs.

All these languages follow the procedural paradigm. That is, they describe, step by step, exactly the procedure that should, according to the particular programmer at least, be followed to solve a specific problem. The efficacy and efficiency of any such solution are both therefore entirely subjective and highly dependent on that programmer's experience, inventiveness, and ability.

Object-oriented programming[edit]

Following the widespread use of procedural languages, object-oriented programming (OOP) languages were created, such as Simula, Smalltalk, C++, C#, Eiffel, PHP, and Java. In these languages, data and methods to manipulate it are kept as one unit called an object. The only way that another object or user can access the data is via the object's methods. Thus, the inner workings of an object may be changed without affecting any code that uses the object. There is still some controversy raised by Alexander Stepanov, Richard Stallman[7] and other programmers, concerning the efficacy of the OOP paradigm versus the procedural paradigm. The need for every object to have associative methods leads some skeptics to associate OOP with software bloat; an attempt to resolve this dilemma came through polymorphism.

Because object-oriented programming is considered a paradigm, not a language, it is possible to create even an object-oriented assembler language. High Level Assembly (HLA) is an example of this that fully supports advanced data types and object-oriented assembly language programming – despite its early origins. Thus, differing programming paradigms can be seen rather like motivational memes of their advocates, rather than necessarily representing progress from one level to the next. Precise comparisons of the efficacy of competing paradigms are frequently made more difficult because of new and differing terminology applied to similar entities and processes together with numerous implementation distinctions across languages.

Further paradigms[edit]

Literate programming, as a form of imperative programming, structures programs as a human-centered web, as in a hypertext essay: documentation is integral to the program, and the program is structured following the logic of prose exposition, rather than compiler convenience.

Independent of the imperative branch, declarative programming paradigms were developed. In these languages, the computer is told what the problem is, not how to solve the problem – the program is structured as a set of properties to find in the expected result, not as a procedure to follow. Given a database or a set of rules, the computer tries to find a solution matching all the desired properties. An archetype of a declarative language is the fourth generation language SQL, and the family of functional languages and logic programming.

Functional programming is a subset of declarative programming. Programs written using this paradigm use functions, blocks of code intended to behave like mathematical functions. Functional languages discourage changes in the value of variables through assignment, making a great deal of use of recursion instead.

The logic programming paradigm views computation as automated reasoning over a body of knowledge. Facts about the problem domain are expressed as logic formulae, and programs are executed by applying inference rules over them until an answer to the problem is found, or the set of formulae is proved inconsistent.

Symbolic programming is a paradigm that describes programs able to manipulate formulas and program components as data.[3] Programs can thus effectively modify themselves, and appear to "learn", making them suited for applications such as artificial intelligence, expert systems, natural language processing and computer games. Languages that support this paradigm include Lisp and Prolog.[8]

Support for multiple paradigms[edit]

Most programming languages supports more than one programming paradigm to allow programmers to use the most suitable programming style and associated language constructs for a given job.[9]

See also[edit]

References[edit]

  1. ^ Nørmark, Kurt. Overview of the four main programming paradigms. Aalborg University, 9 May 2011. Retrieved 22 September 2012.
  2. ^ Frans Coenen (1999-10-11). "Characteristics of declarative programming languages". cgi.csc.liv.ac.uk. Retrieved 2014-02-20. 
  3. ^ a b Michael A. Covington (2010-08-23). "CSCI/ARTI 4540/6540: First Lecture on Symbolic Programming and LISP" (PDF). University of Georgia. Retrieved 2013-11-20. 
  4. ^ Peter Van Roy (2009-05-12). "Programming Paradigms for Dummies: What Every Programmer Should Know" (PDF). info.ucl.ac.be. Retrieved 2014-01-27. 
  5. ^ Frank Rubin (March 1987). "'GOTO Considered Harmful' Considered Harmful" (PDF). Communications of the ACM. 30 (3): 195–196. doi:10.1145/214748.315722. Archived from the original (PDF) on March 20, 2009. 
  6. ^ Floyd, R. W. (1979). "The paradigms of programming". Communications of the ACM. 22 (8): 455. doi:10.1145/359138.359140. 
  7. ^ "Mode inheritance, cloning, hooks & OOP (Google Groups Discussion)". 
  8. ^ "Business glossary: Symbolic programming definition". allbusiness.com. Retrieved 2014-07-30. 
  9. ^ "Multi-Paradigm Programming Language". developer.mozilla.org. Mozilla Foundation. Archived from the original on 21 August 2013. 

External links[edit]

Disclaimer

None of the audio/visual content is hosted on this site. All media is embedded from other sites such as GoogleVideo, Wikipedia, YouTube etc. Therefore, this site has no control over the copyright issues of the streaming media.

All issues concerning copyright violations should be aimed at the sites hosting the material. This site does not host any of the streaming media and the owner has not uploaded any of the material to the video hosting servers. Anyone can find the same content on Google Video or YouTube by themselves.

The owner of this site cannot know which documentaries are in public domain, which has been uploaded to e.g. YouTube by the owner and which has been uploaded without permission. The copyright owner must contact the source if he wants his material off the Internet completely.

Powered by YouTube
Wikipedia content is licensed under the GFDL and (CC) license