"subroutine" in Japanese
サブルーチン
Definition
サブルーチンとは、特定の処理を行うためにプログラム内でまとめられ、何度も呼び出して使える命令の集まりです。
Usage Notes (Japanese)
主にプログラミングやコンピュータ分野で使われ、「関数」や「プロシージャ」と同様の意味で使われることが多いです。日常会話ではほとんど使いません。
Examples
This program uses a subroutine to add two numbers.
このプログラムは2つの数を足すために**サブルーチン**を使っています。
A subroutine helps keep the code organized.
**サブルーチン**はコードを整理するのに役立ちます。
You can call the subroutine many times in your program.
プログラム内でこの**サブルーチン**を何度も呼び出すことができます。
Let me show you how this subroutine makes everything run smoother.
この**サブルーチン**がどのように全体をスムーズに動かすか見せてあげるよ。
Oops, the bug was actually inside the subroutine!
あれ、この**サブルーチン**の中にバグがあったんだ!
When your code gets repetitive, just turn that part into a subroutine.
コードが何度も同じことをしているなら、その部分を**サブルーチン**にするといいですよ。