| Item type |
Journal(1) |
| 公開日 |
2026-01-15 |
| タイトル |
|
|
言語 |
ja |
|
タイトル |
Javaにおける一文字変数の型とスコープに着目した利用実態調査 |
| タイトル |
|
|
言語 |
en |
|
タイトル |
An Empirical Study on the Usage of Single-letter Variables in Java: Focusing on Types and Scopes |
| 言語 |
|
|
言語 |
jpn |
| キーワード |
|
|
主題Scheme |
Other |
|
主題 |
[一般論文] 一文字変数,命名規則,ソフトウェア保守,プログラム理解 |
| 資源タイプ |
|
|
資源タイプ識別子 |
http://purl.org/coar/resource_type/c_6501 |
|
資源タイプ |
journal article |
| ID登録 |
|
|
ID登録 |
10.20729/0002006757 |
|
ID登録タイプ |
JaLC |
| 著者所属 |
|
|
|
奈良先端科学技術大学院大学 |
| 著者所属 |
|
|
|
奈良先端科学技術大学院大学 |
| 著者所属 |
|
|
|
公立はこだて未来大学 |
| 著者所属 |
|
|
|
奈良先端科学技術大学院大学 |
| 著者所属(英) |
|
|
|
en |
|
|
Nara Institute of Science and Technology |
| 著者所属(英) |
|
|
|
en |
|
|
Nara Institute of Science and Technology |
| 著者所属(英) |
|
|
|
en |
|
|
Future University Hakodate |
| 著者所属(英) |
|
|
|
en |
|
|
Nara Institute of Science and Technology |
| 著者名 |
岡井,光輝
嶋利,一真
石尾,隆
松本,健一
|
| 著者名(英) |
Koki Okai
Kazumasa Shimari
Takashi Ishio
Kenichi Matsumoto
|
| 論文抄録 |
|
|
内容記述タイプ |
Other |
|
内容記述 |
プログラム理解において,変数名は保守性に大きく影響するため,一般的には複数文字の名前が推奨される.一方で,一文字変数もJavaソースコードの約9%を占めるなど無視できない存在である.変数名の利用や命名において型やスコープを考慮することの重要性が示されているが,一文字変数については狭いスコープで使うという推奨にとどまっており,型やスコープごとに異なるであろう利用実態は調査されていない.本論文では,Javaソースコードにおける一文字変数の利用実態を,型とスコープ,そして使用されるアルファベットに着目して定量的に分析する.分析の結果,一文字変数の使用割合,使用されるアルファベット,そしてスコープの広さが,いずれも変数の型によって異なることを明らかにした.これらの結果は,一文字変数の利用においては型に基づいたアルファベット選択の慣習ならびにスコープの文脈を考慮する必要性を示している. |
| 論文抄録(英) |
|
|
内容記述タイプ |
Other |
|
内容記述 |
In program comprehension, variable names significantly impact maintainability, thus multi-letter names are generally recommended. However, single-letter variables are a non-negligible presence, constituting about 9% of Java source code. The importance of considering type and scope when using and naming variables has been shown, but recommendations for single-character variables are limited to using them in a narrow scope, and actual usages that are likely to vary depending on type and scope have not been investigated. This paper quantitatively analyzes the actual usage of single-letter variables in Java source code, focusing on type, scope, and the alphabet used. Our analysis revealed that the usage ratio, the chosen alphabet, and the scope of single-letter variables all vary depending on the variable type. These results demonstrate the necessity of considering type-based alphabet conventions and scope context when using single-letter variables. |
| 書誌レコードID |
|
|
収録物識別子タイプ |
NCID |
|
収録物識別子 |
AN00116647 |
| 書誌情報 |
情報処理学会論文誌
巻 67,
号 1,
p. 82-91,
発行日 2026-01-15
|
| ISSN |
|
|
収録物識別子タイプ |
ISSN |
|
収録物識別子 |
1882-7764 |
| 公開者 |
|
|
言語 |
ja |
|
出版者 |
情報処理学会 |