Lably
Skip to content

Procedural programming

Computer programming paradigm

  • 4 min read
  • 2 chapters

Related on Lably

Through Computer program, Function (computer programming) and COBOL

The first major procedural programming languages appeared c. 1957–1964, including Fortran, ALGOL, COBOL, PL/I and BASIC. Pascal and C were published c. 1970–1972.

Computer processors provide hardware support for procedural programming through a stack register and instructions for calling procedures and returning from them. Hardware support for other types of programming is possible, like Lisp machines or Java processors, but no attempt was commercially successful.

Development practices

Certain software development practices are often employed with procedural programming in order to enhance quality and lower development and maintenance costs.

Modularity and scoping

Modularity is about organizing the procedures of a program into separate modules—each of which has a specific and understandable purpose.

Minimizing the scope of variables and procedures can enhance software quality by reducing the cognitive load of procedures and modules.

A program lacking modularity or wide scoping tends to have procedures that consume many variables that other procedures also consume. The resulting code is relatively hard to understand and to maintain.

Sharing

Since a procedure can specify a well-defined interface and be self-contained it supports code reuse—in particular via the software library.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Computing and communication