programming paradigm
A programming paradigm is a relatively high-level way to conceptualize and structure the implementation of a computer program. A programming language can be classified as supporting one or many paradigms. Paradigms are separated along and described by different dimensions of programming. Some paradigms are about implications of the execution model, such as allowing side effects, or whether the sequence of operations is defined by the execution model. Other paradigms are about the way code is organized, such as grouping into units that include both state and behavior. Yet others are about syntax and grammar. Some common programming paradigms include (shown in hierarchical relationship): * Imperative code directly controls execution flow and state change, explicit statements that change a program state ** procedural organized as procedures that call each other ** object-oriented organized as objects that contain both data structure and associated behavior, uses data structures...
A programming paradigm is a relatively high-level way to conceptualize and structure the implementation of a computer program. A programming language can be classified as supporting one or many paradigms. Paradigms are separated along and described by different dimensions of programming. Some paradigms are about implications of the execution model, such as allowing side effects, or whether the sequence of operations is defined by the execution model. Other paradigms are about the way code is organized, such as grouping into units that include both state and behavior. Yet others are about syntax and grammar. Some common programming paradigms include (shown in hierarchical relationship): Imperative code directly controls execution flow and state change, explicit statements that change a program state procedural organized as procedures that call each other object-oriented organized as objects that contain both data structure and associated behavior, uses data structures consisting of data fields and methods together with their interactions (objects) to design programs Class-based – object-oriented programming in which abstract data types and inheritance are achieved by defining classes of objects, versus the objects themselves Object-based - paradigm in which the object has a construct to encapsulate state and behavior, but without inheritance or subtyping Prototype-based – object-oriented programming that avoids classes and implements inheritance via cloning of instances Data, Context, and Interaction - paradigm that emphasizes mental models and run-time behavior of networks of objects, whose responsibilities are granted dynamically based on roles they play in interactions with other objects Declarative code declares properties of the desired result, but not how to compute it, describes what computation should perform, without specifying detailed state changes functional a desired result is declared as the value of a series of function evaluations, uses evaluation of mathematical functions and avoids state and mutable data logic a desired result is declared as the answer to a question about a system of facts and rules, uses explicit mathematical logic for programming reactive a desired result is declared with data streams and the propagation of change Concurrent programming – has language constructs for concurrency, these may involve multi-threading, support for distributed computing, message passing, shared resources (including shared memory), or futures Actor programming – concurrent computation with actors that make local decisions in response to the environment (capable of selfish or competitive behaviour) Constraint programming – relations between variables are expressed as constraints (or constraint networks), directing allowable solutions (uses constraint satisfaction or simplex algorithm) Dataflow programming – forced recalculation of formulas when data values change (e.g. spreadsheets) Distributed programming – has support for multiple autonomous computers that communicate via computer networks Generic programming – uses algorithms written in terms of to-be-specified-later types that are then instantiated as needed for specific types provided as parameters Metaprogramming – writing programs that write or manipulate other programs (or themselves) as their data, or that do part of the work at compile time that would otherwise be done at runtime Template metaprogramming – metaprogramming methods in which a compiler uses templates to generate temporary source code, which is merged by the compiler with the rest of the source code and then compiled Reflective programming – metaprogramming methods in which a program modifies or extends itself Pipeline programming – a simple syntax change to add syntax to nest function calls to language originally designed with none Rule-based programming – a network of rules of thumb that comprise a knowledge base and can be used for expert systems and problem deduction & resolution Visual programming – manipulating program elements graphically rather than by specifying them textually (e.g. Simulink); also termed diagrammatic programming ==External links== Classification of the principal programming paradigms How programming paradigms evolve and get adopted?
References
- ^ "Multi-Paradigm Programming Language" . Mozilla Developer Network . Mozilla Foundation . Jun 21, 2013. Archived from the original on 21 August 2013. Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ Krishnamurthi, Shriram (November 2008). "Teaching programming languages in a post-linnaean age" . ACM SIGPLAN Notices . 43 (11). ACM: 81– 83. doi : 10.1145/1480828.1480846 . S2CID 35714982 . . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ Floyd, R. W. (1979). "The paradigms of programming" . Communications of the ACM . 22 (8): 455– 460. doi : 10.1145/359138.359140 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ Soroka, Barry I. (2006). Java 5: Objects First . Jones & Bartlett Learning. ISBN 9780763737207 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ "Mode inheritance, cloning, hooks & OOP (Google Groups Discussion)" . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ "Business glossary: Symbolic programming definition" . allbusiness.com . Retrieved 2014-07-30 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1406674800.0
- ^ Wang, Fei; Decker, James; Wu, Xilun; Essertel, Gregory; Rompf, Tiark (2018), Bengio, S.; Wallach, H.; Larochelle, H.; Grauman, K. (eds.), "Backpropagation with Callbacks: Foundations for Efficient and Expressive Differentiable Programming" (PDF) , Advances in Neural Information Processing Systems 31 , Curran Associates, Inc., pp. 10201– 10212 , retrieved 2019-02-13 Wikipedia revision 1350371559, retrieved 2026-11-18 · 1550012400.0
- ^ Nørmark, Kurt. Overview of the four main programming paradigms . Aalborg University, 9 May 2011. Retrieved 22 September 2012. Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ Frans Coenen (1999-10-11). "Characteristics of declarative programming languages" . cgi.csc.liv.ac.uk . Archived from the original on 2014-02-27 . Retrieved 2014-02-20 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1392850800.0
- ^ Peter Van Roy (2009-05-12). "Programming Paradigms: What Every Programmer Should Know" (PDF) . info.ucl.ac.be . Retrieved 2014-01-27 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1390777200.0
- ^ "Programming paradigms: What are the principles of programming?" . IONOS Digitalguide . 20 April 2020. Archived from the original on Jun 29, 2022 . Retrieved 2022-05-03 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1651532400.0
- ^ Harper, Robert (1 May 2017). "What, if anything, is a programming-paradigm?" . FifteenEightyFour . Cambridge University Press. Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ Peter Van-Roy; Seif Haridi (2004). Concepts, Techniques, and Models of Computer Programming . MIT Press. ISBN 978-0-262-22069-9 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ Innes, Mike (2018). "On Machine Learning and Programming Languages" (PDF) . SysML Conference 2018 . Archived from the original (PDF) on 2018-09-20 . Retrieved 2019-02-13 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1550012400.0
- ^ Frank Rubin (March 1987). " 'GOTO Considered Harmful' Considered Harmful" (PDF) . Communications of the ACM . 30 (3): 195– 196. doi : 10.1145/214748.315722 . S2CID 6853038 . Archived from the original (PDF) on March 20, 2009. Wikipedia revision 1350371559, retrieved 2026-11-18 · 1794956400.0
- ^ a b Michael A. Covington (2010-08-23). "CSCI/ARTI 4540/6540: First Lecture on Symbolic Programming and LISP" (PDF) . University of Georgia. Archived from the original (PDF) on 2012-03-07 . Retrieved 2013-11-20 . Wikipedia revision 1350371559, retrieved 2026-11-18 · 1384902000.0
- programming paradigm. https://en.wikipedia.org/w/index.php?oldid=1350371559 · 1795438144.7002156
Cite this
"programming paradigm". 1776777260. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1350371559