DEV Community

Sivakumar Mathiyalagan
Sivakumar Mathiyalagan

Posted on

Programming Paradigms

  • A programming paradigm is a method or style of solving problems using a programming language. It provides a structured approach and set of principles that guide how programs are designed and implemented
  • Different programming paradigms use different techniques and strategies to solve software development problems efficiently.
  • A programming language may support one or more paradigms, allowing developers to choose the best approach based on project requirements.

Types of programming paradigms
1. Imperative Programming Paradigm
2. Declarative programming paradigm

1.Imperative Programming Paradigm:
Imperative programming is one of the oldest programming paradigms and is closely related to machine architecture and Von Neumann architecture. It works by changing the program state through assignment statements and executes tasks step-by-step to achieve the desired result.
Object oriented programming
Parallel processing approach

Object oriented programming
The program is written as a collection of classes and object which are meant for communication. The smallest and basic entity is object and all kind of computation is performed on the objects only

Parallel processing approach
Parallel processing is the processing of program instructions by dividing them among multiple processors. A parallel processing system posses many numbers of processor with the objective of running a program in less time by dividing them

2. Declarative programming paradigm
Declarative programming is a programming style that focuses on what needs to be done rather than how to do it. It expresses the logic of computation without describing the step-by-step control flow of the program
Functional programming paradigms
Data driven programming approach

Functional programming paradigms
Functional programming is a paradigm based on mathematical functions where computation is performed through the execution of functions. It focuses on using functions for specific tasks while keeping data loosely coupled and minimizing changes in program state

Data driven programming approach
Database or data-driven programming focuses on data and its movement rather than hard-coded program steps. In this approach, program behavior is controlled by data operations such as storage, retrieval, filtering, and reporting

Top comments (0)