subroutine

noun

Meaning

A set of instructions designed to perform a frequently used operation within a computer program, which can be called upon by the main program at any time.

Examples

  • The software architecture relies on a complex subroutine to handle data validation.
  • By modularizing the code, developers can test each subroutine independently before integration.

Synonyms: function, procedure, method, routine