Paradigm originally meant something like 'exemplar'/'pattern'/'template' but in the last 30 years has come to mean something more like 'zeitgeist'/'worldview'. In the former sense,
ThereAreExactlyThreeParadigms, this page as about the second sense, but it will be useful to give the defining example of each way of thinking. In no particular order
A programming paradigm provides for the programmer the means and structure for the execution of a program.
Programmers can think of programs
Many programming paradigms are as well-known for what they do not do as for what they do. This avoidance of certain techniques can make it easier to prove theorems about a program's correctness and to simply understand its behavior, without limiting it.
Programming languages advocate different paradigms
ModularProgramming
- It's worth noting that a number of the styles above are
- based more or less directly on mathematical models
- While Other languages 'just happened'
New paradigms are often not well received by those accustomed to earlier styles.
A programming language can support multiple paradigms.
CeePlusPlus is designed to support elements of procedural programming, object-based programming, object-oriented programming, functional programming, and generic programming.
Designers and programmers can decide how to build a program using any or a mix of these paradigm elements.
Thus a programmer can write a program in C++ that
- is a purely procedural program
- is a purely object-oriented program
- contains elements of both paradigms
- contains elements of functional programming
- uses methods of generic programming
Related
AugustZeroSix
CategoryProgrammingLanguageComparisons CategoryRoadMap,
CategoryMultiparadigm