subroutines
サブルーチン
解説 Definition
プログラミングにおいて、大きなプログラムの一部を構成する小さなプログラムまたは関数。繰り返し使用される処理を独立したプログラム部品として実装したもの。
Subroutines are smaller sets of instructions inside a computer program that do a specific job. Programmers use them to organize code and repeat tasks more efficiently. The same idea is also called a function or procedure in some contexts.
覚え方のコツ Memory Tip
sub- は subway, subtitle, subtask などと同じく「下位の・補助の」。routine は「いつもの決まった手順」。この2つを合わせて、subroutine は「主処理の下で呼ばれる、小さく切り出した定型手順」と捉えると覚えやすいです。プログラム全体の main routine に対し、繰り返し使う処理を別部品にしたもの、という構図で記憶すると定着します。call a subroutine, reusable subroutines の形も一緒に覚えると、function や procedure に近い実務語感まで拾えます。
Use the parts: `sub-` means smaller, lower, or secondary, and `routine` means a regular set of steps. So `subroutines` are smaller routines inside a bigger program. Remember them as helper parts called by the main routine again and again.
例文
The programmer wrote several subroutines to handle data processing.
プログラマーはデータ処理を扱うためにいくつかのサブルーチンを書いた。
Organizing code into subroutines makes the program more manageable.
コードをサブルーチンに整理するとプログラムがより管理しやすくなる。
The main program calls multiple subroutines to execute different tasks.
メインプログラムは異なるタスクを実行するために複数のサブルーチンを呼び出す。
subroutines の語源・成り立ち Etymology
subroutines は sub-「下位の」+ routine + -s。routine はフランス語 routine を経て route 系に連なり、もとは決まった道筋のこと。route や router と同じ発想で、主処理の下で動く小さな手順だから「サブルーチン」になる。
Subroutines combines sub-, meaning "under" or "secondary," with routine. Routine came from French routine and is linked to route, the idea of a usual path or fixed course. In computing, the word was applied to a smaller repeated procedure that runs under or within a main process.
同じレベルの英単語をもっと
外部辞書で調べる
この単語を英単語クイズで覚えよう