programming paradigm

Uses your system voice; voice and rate in settings.

Q188267Snapshot

≈ 5 min read

Names in other languages

  • Polskiparadygmat programowania
  • Englishprogramming paradigm
  • 한국어프로그래밍 패러다임
  • 中文编程范式
  • 简体中文编程范型
  • 繁體中文編程範型
  • 中文編程範型
  • 中文编程范型
  • 中文編程範型

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

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 *** Prot…

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?

Text derived from https://en.wikipedia.org/w/index.php?oldid=1350371559 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot programming-paradigm-022487-2fda18e71425f747 · hash 2fda18e71425f747ab5384a962ee928ab17d682d0c0ac111b9d9a1f88043ab58 · captured 1776777260.0 · version history

Cite this page as: encyclopegia.org, “programming paradigm”, snapshot programming-paradigm-022487-2fda18e71425f747. https://encyclopegia.org/a/programming-paradigm

Sources cited in this revision

No external citation was extracted for this revision. That is a statement about the source, not a claim that none exists.