On this page
Imperative & Procedural Programming
Prev: paradigms | Up: paradigms | Next: Object-Oriented Programming
Rel: Control Flow & Composition, Call Stack & Heap
Ref: Wikipedia — Procedural Programming
Tags: #public #prog #programming #paradigms
Contents
Core Model: State + Procedures
Imperative programming describes how to compute a result as an explicit sequence of commands that mutate program state. Procedural programming structures those commands into reusable procedures (functions) operating on plain data records (structs):
record Account { balance: int }
procedure deposit(account, amount):
if amount > 0:
account.balance = account.balance + amount
Data and behavior remain decoupled, mirroring how CPUs actually execute instructions in memory.
Strengths & Trade-Offs
- Strengths: Transparent performance model, direct hardware/memory mapping, simple control flow, minimal indirection (C, Go).
- Trade-offs: Shared mutable state can become difficult to coordinate in large systems without strict module boundaries.
Linked from
Related notes
- tuts/programming/paradigms Linked here; links to this page; shared tags: #paradigms, #prog, #programming
- tuts/programming/paradigms/object_oriented_programming Linked here; links to this page; shared tags: #paradigms, #prog, #programming
- tuts/programming/foundations/control_flow_and_composition Linked here; links to this page; shared tags: #prog, #programming
- tuts/programming/memory_and_execution/call_stack_and_heap Linked here; shared tags: #prog, #programming
- tuts/programming/paradigms/declarative_and_event_driven shared tags: #paradigms, #prog, #programming
- tuts/programming/paradigms/functional_programming shared tags: #paradigms, #prog, #programming
- tuts/programming shared tags: #prog, #programming
- tuts/programming/algorithms_and_dsa shared tags: #prog, #programming
- tuts/programming/algorithms_and_dsa/complexity_and_big_o shared tags: #prog, #programming
- tuts/programming/algorithms_and_dsa/linear_and_hashed_structures shared tags: #prog, #programming