subroutines

Reusable code blocks

Subroutines is the plural of subroutine, a sequence of instructions within a computer program that performs a specific task.

Subroutines can be called from multiple points in a program, avoiding repetition: The code was organized into subroutines for readability.

Also called functions, procedures, or methods depending on the programming language.

programming

functions

Works or serves purposes

parameters · arguments · recursion · iteration · invocation · implementation · nesting · scope · execution · debugging

modularity

reusable

Fit for repeated service

blocks · units · segments · encapsulation · abstraction · libraries · APIs · packages · snippets · templates

structure

procedure

Prescribed sequence of actions

return · header · body · signature · declaration · definition · naming · documentation · inline · nested

routine

repetitive

Marked by recurrence

established · procedural · sequential · mechanical · predictable · consistent · regular · methodical · structured · orderly

Categories
Opposites
program hierarchy

subroutinesmain function

Chief operational role

entry point · controller · orchestrator

code modularity

subroutinesinline code

spaghetti code

Family

subroutine

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