Glossary
Procedural Programming
Procedural Programming
Procedural programming is a programming paradigm built around the idea that programs are sequences of instructions to be executed. They focus heavily on splitting up programs into named sets of instructions called procedures, analogous to functions. A procedure can store local data that is not accessible from outside the procedure's scope and can also access and modify global data variables.
Some of the earliest procedural programming languages were Fortran and ALGOL. Ideas developed in ALGOL are very much relevant and prevalent in modern-day programming languages.
What are some tenets of procedural programming?
- Programs are composed of sequences of instructions. Minimal abstraction is present between the code and the machine.
- Procedures, which are logical blocks consisting of groups of instructions, can be invoked from other places in the code.
- A procedure can accept arguments and return values to the caller. Additionally, functions can access and modify variables in the global scope.
- Procedural languages follow structured programming practices and use block-based control flow rather than goto commands.
Write clean and secure code with DeepSource
Powerful static analysis that takes 5 minutes to set up and helps you fix code health and security problems on every pull request.