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.
Packaged callable code segment
- moduleIndependent functional component
- functionPurpose or duty
- procedurePrescribed sequence of actions
- routineRegular sequence of actions
component · unit · block · segment · subsystem · library · package · snippet
Contact by phone
- invokeCall upon formally
- executeCarry out fully
- returnGo back again
- entry pointWhere access begins
exit point · parameter · argument · input · output · recursion · iteration · loop
Symbolic communication system
- debugRemove software errors
- compileCollect into unified whole
- syntaxRules for arranging words
- algorithmFinite problem-solving procedure
pseudocode · flowchart · implementation · optimization · refactor · documentation · testing · maintenance
subroutine
Packaged callable code segment
- moduleIndependent functional component
- functionPurpose or duty
- procedurePrescribed sequence of actions
routine · component · unit · block · segment · subsystem · library · package · snippet · macro
call
Contact by phone
entry point · exit point · parameter · argument · input · output · recursion · iteration · loop · branching
code
Symbolic communication system
algorithm · pseudocode · flowchart · implementation · optimization · refactor · documentation · testing · maintenance · version
- CNC machiningCNC, G-code, spindle, axis, CNC machine