subroutine

UKˌsʌbruːˈtiːnUSˈsʌbruːˌtiːn

How we check entries

Meaning

1n

A set of instructions for performing a specific task within a larger computer program, which can be called upon when needed.

Structure

word structure
1
sub
under, secondary
+
2
routine
regular procedure

Usage

The programmer created a subroutine to handle all error-checking logic.

Calling a subroutine temporarily transfers control from the main program.

Efficient code often reuses subroutines to avoid repetition.

Etymology

The term 'subroutine' is a modern compound from the field of computer science, coined in the mid-20th century. It logically combines the Latin prefix 'sub-', implying a subordinate or secondary level, with the word 'routine', denoting a fixed sequence of operations. The concept is that a subroutine is a secondary, self-contained routine that operates under the control of a main program. This construction captures the functional hierarchy in programming, where a main procedure delegates specific, repeatable tasks to these subordinate blocks of code.

Analysis

Structure
sub (under, secondary) + routine (regular procedure)=subunder, secondary+routineregular procedure

- sub: A prefix of Latin origin, meaning "under," "below," or "secondary." - routine: A noun of French origin (via route, from Latin rupta 'broken way'), meaning a regular course of procedure or a standard set of instructions.

Reading in Chrome on a computer? Select a word on any other website to look it up like this. Chrome extension · Add to Chrome

Subroutine Meaning & Word Parts (sub + routine) | OpenEtymology