What is Procedural Programming? - Definition from Techopedia

Procedural Programming

What Does Procedural Programming Mean?

Procedural programming is a programming paradigm that uses a linear or top-down approach. It relies on procedures or subroutines to perform computations.

Advertisements

Procedural programming is also known as imperative programming.

Techopedia Explains Procedural Programming

In procedural programming, a program consists of data and modules/procedures that operate on the data. The two are treated as separate entities. In the object-oriented programming (OOP) paradigm, however, a program is built from objects. An object is an instance of a class, which is an encapsulation of data (called fields) and the procedures (called methods) that manipulate them. In most, but not all, cases, the fields can only be accessed or modified through the methods. An object therefore is like a miniature program or a self-contained component, which makes the OOP approach more modularized and thus easier to maintain and extend.

Another type of programming paradigm that procedural programming can be contrasted with is event-driven programming. In this approach, procedures are called/executed only in response to events, which may include mouse clicks, keyboard press, attaching or removing a device, arrival of data from an external source, etc. As these events are unpredictable, the procedures that handle them cannot be executed linearly as is the case with procedural programming.

Advertisements

Related Terms

Margaret Rouse
Technology Expert

Margaret is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages.