subprogram

Callable code segment

A subprogram is a self-contained section of code within a larger program, designed to perform a specific task.

Subprograms—also called functions, procedures, or subroutines—can be called repeatedly from different parts of the main program, making code more organized and reusable: The subprogram calculates tax on each transaction.

structure

subroutine

Packaged callable code segment

routine · component · unit · block · segment · subsystem · library · package · snippet · macro

execution

call

Contact by phone

entry point · exit point · parameter · argument · input · output · recursion · iteration · loop · branching

development

code

Symbolic communication system

  • debugRemove software errors
  • compileCollect into unified whole
  • syntaxRules for arranging words

algorithm · pseudocode · flowchart · implementation · optimization · refactor · documentation · testing · maintenance · version

Categories
Opposites
hierarchical scope in program structure

subprogrammain function

Chief operational role

entry point

modularity and decomposition

subprogrammonolith

Huge solitary standing stone

inline code · spaghetti code

Family

subprograms

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Rated G