
Approaches to programming
- Imperative programming – focuses on how to execute, defines control flow as statements that change a program state.
- Declarative programming – focuses on what to execute, defines program logic, but not detailed control flow.
Programming paradigms
- Procedural programming, structured programming – specifies the steps a program must take to reach a desired state.
- Functional programming – treats programs as evaluating mathematical functions and avoids state and mutable data
- Object-oriented programming (OOP) – organizes programs as objects: data structures consisting of datafields and methods together with their interactions.
Types of programming -can be implemented using different paradigms-
- Event-driven programming – program control flow is determined by events, such as sensor inputs or user actions (mouse clicks, key presses) or messages from other programs or threads.
- Automata-based programming – a program, or part, is treated as a model of a finite state machine or any other formal automaton.
- Reactive programming is a declarative programming paradigm concerned with data streams and the propagation of change.
Don't be shy, leave us a comment