Explore tens of thousands of sets crafted by our community.
Programming Paradigms
12
Flashcards
0/12
Object-Oriented Programming (OOP)
Encapsulation, inheritance, polymorphism; Examples: Java, C#, Python, Ruby, JavaScript
Prototype-Based Programming
Objects without classes, objects as prototypes for other objects; Examples: JavaScript, Lua
Procedural Programming
Sequential execution, local variables, functions, procedures; Examples: C, PHP, JavaScript
Declarative Programming
Describes what computation should be performed, not necessarily how; Examples: SQL, HTML, CSS, functional and logic programming languages
Logic Programming
Rule-based, declarative programming, formal logic; Examples: Prolog, Datalog, some aspects of SQL
Reactive Programming
Asynchronous data streams, non-blocking, functional style, for handling time-varying values; Examples: RxJS (JavaScript library), ReactiveX extensions
Concurrent Programming
Processes executing simultaneously, synchronization, communication between processes; Examples: languages with concurrency models like Go, Erlang, and JavaScript with Web Workers
Event-Driven Programming
Events, event handlers, asynchronicity, callbacks; Examples: JavaScript (Node.js, browser scripting), Java (with event listeners)
Component-Based Programming
Modularity, reusability, separation of concerns; Examples: React (JavaScript library), Angular (TypeScript-based framework), Vue.js
Aspect-Oriented Programming (AOP)
Separation of concerns to improve modularity, cross-cutting concerns; Mostly used in conjunction with OOP; Examples: AspectJ (for Java), Spring Framework
Imperative Programming
Directly changes program state through commands; Examples: C, Java, Python, JavaScript
Functional Programming
First-class functions, immutability, pure functions, higher-order functions; Examples: Haskell, Clojure, JavaScript (Functional aspects), Scala
© Hypatia.Tech. 2024 All rights reserved.