構文情報に基づく一文字変数利用におけるソースコードの保守性低下要因の検出

光輝 岡井 · Institutional Repositories DataBase (IRDB) · 2024

This thesis focuses on the practical usage of single-letter variables in software, particularly in source code, by examining syntactic information.It aims to reveal indicators for detecting factors that adversely affect source code maintainability.Approximately 70% of source code is composed of identifiers, and the readability of variable names, which constitute a significant portion of identifiers, has a substantial impact on source code maintainability.While variables often receive relatively longer names to easily recall the meaning of the data they store, instances have been reported where the readability of single-letter variable names does not significantly differ.Through the analysis of eight GitHub projects utilizing Java as the programming language, it was observed that the percentage of single-letter variables varies based on the variable type.In addition, there is a tendency to uniquely select alphabets for single-letter variable usage based on the variable type.Furthermore, the scope of single-letter variables varies based on the variable type, especially in source code containing bugs, where the scope of single-letter variables tends to be larger.Based on the findings, indicators for detecting single-letter variables that adversely affect source code maintainability were proposed from the perspectives of type, alphabet, and scope.

Cited by 0 works. Open-access PDF

Authors