subroutine
US /ˈsʌb.ruː.tiːn/
UK /ˈsʌbruːˌtiːn/
名詞
サブルーチン, 副プログラム
a sequence of instructions within a larger program that performs a specific task, often used multiple times within the program or by other programs
例:
•
The main program calls a subroutine to handle data validation.
メインプログラムはデータ検証を処理するためにサブルーチンを呼び出す。
•
Writing modular code with subroutines improves readability and reusability.
サブルーチンを使ったモジュール化されたコードを書くことで、可読性と再利用性が向上する。