subroutine
Sign in to saveAlso known as routine, subprogram, callable unit, procedure, function, method, functions, subroutines
sequence of instructions that can be called from other points in a computer program
In the Vinony graph
Within Vinony's link graph, subroutine is referenced by 940 other articles, and connects out to evaluation strategy, parameter and processor register.
Vinony files it under Holism, Programming constructs and Source code.
Its subject is documented across 49 Wikipedia language editions.
Wikidata facts
- Subclass of
- language construct
- Part of
- computer program
- Has part
- return type
- Depicts
- function
Show 2 more facts
- topic's main category
- Category:Subroutines
- Stack Exchange tag
- stackoverflow.com/tags/function
via Wikidata · CC0
~39 min read
Encyclopedic overview
In computer programming, a function (also procedure, method, subroutine, routine, or subprogram) is a callable unit of software logic that has a well-formed interface and behavior and can be invoked multiple times.
Callable units provide a powerful programming tool. The primary purpose is to allow for the decomposition of a large and/or complicated problem into chunks that have relatively low cognitive load and to assign the chunks meaningful names (unless they are anonymous). Judicious application can reduce the cost of developing and maintaining software, while increasing its quality and reliability.
Excerpted from Wikipedia’s “subroutine” article, available under the CC BY-SA 4.0 licence.