"subroutines" in Japanese
サブルーチン
Definition
サブルーチンとは、特定の処理を行い、必要なときに何度も呼び出せる小さなプログラムの一部です。
Usage Notes (Japanese)
プログラミング用語で、最近は「関数」や「メソッド」と呼ばれることも多いですが、「サブルーチン」はより単純で短い処理に使われることが多いです。
Examples
We use subroutines to avoid repeating code.
コードの繰り返しを避けるために**サブルーチン**を使います。
The program has many subroutines for different tasks.
このプログラムにはさまざまな作業用の**サブルーチン**がたくさんあります。
Each subroutine solves a specific problem.
それぞれの**サブルーチン**が特定の問題を解決します。
If your code gets too long, try breaking it into subroutines.
コードが長すぎる場合は、**サブルーチン**に分けてみてください。
Good programmers write clear subroutines others can reuse.
優れたプログラマーは他の人も再利用できるわかりやすい**サブルーチン**を書きます。
Debugging is easier when you organize your code into short subroutines.
短い**サブルーチン**にコードをまとめるとデバッグが簡単になります。