Programming Languages

2. Programming Paradigms

2.1. Common Programming Paradigms

A programming paradigm is a style or philosophy for writing code. Most languages support multiple paradigms.

Procedural Programming: This is an imperative paradigm that structures a program as a sequence of steps or routines. The focus is on a series of commands to achieve a desired outcome. C and Fortran are examples.

Procedural programming is a programming paradigm (a pattern or model) that focuses on creating procedures or routines to solve problems. Procedural programming is a programming paradigm where the logic of a program is built around procedures, also known as functions or routines.

Procedural Programming languages follow a sequence of instructions and conveys it to the computer. In procedural programming, a program is divided into smaller, manageable units that perform specific tasks. These units are executed in a sequential manner, and the program flow is typically controlled using structures such as loops, conditionals, and function calls Procedural programming depends on procedures. As procedural programming language follows a method of solving problems from the top of the code to the bottom of the code, if a change is required to the program, the developer has to change every line of code that links to the main or the original code. If the user wants to code a program, they would have to follow a sequence of instructions and thereby enter the instructions. In addition, we can say that when a problem is need to be fix using procedural programming, the developer will start with the problem (procedure) and then he logically fragments the problem down into sub problems (Sub-Procedures). Subsequently, this process will continue until a sub- procedure is simple enough to be solved by itself.