| 講演抄録/キーワード |
| 講演名 |
2010-11-24 11:30
フォールト潜在予測に向けたコメント文記述及びコメントアウトの定量分析 ○阿萬裕久(愛媛大) KBSE2010-25 |
| 抄録 |
(和) |
ソースコード中に記述されたコメントは,そのコードを理解する上で有益な情報を提供することが多い.しかしその反面,複雑で分かりにくいコードであっても,コメント文の存在によって問題のコードが目立たなくなる場合もある.リファクタリングの分野では,そういったコードの問題を“不吉な匂い” と呼んでおり,その場合にコメント文は“消臭剤” の役割を成すともいわれている.そこで,実際の傾向について考察するため,本稿ではオープンソースソフトウェアEclipse に対してデータ収集と定量分析を行っている.その結果として次の傾向が確認されている:(1)コメント記述の多いコードほどフォールトの潜在率も高い;(2)コメントアウトを含むコードの方がフォールトの潜在率が高い;(3)ただし,コードの規模が小さい(< 60 LOC)場合,上述の傾向は見られない. |
| (英) |
Comments written in a source code would be useful for understanding the code. However, some comments mask problematic code which is complex and/or hard-to-understand. In the study of refactoring, such problematic code is called “bad smell” and the associated comments serve as “air freshener.” To investigate such impact of comments, this paper collects a lot of source code from one of famous open source software, Eclipse, and performs a quantitative analysis on the code. The empirical results show the followings: (1) A code having more comments would be more fault-prone; (2) A code including a comment-out would be more fault-prone; (3) Neither above trends (1) nor (2) would be observed in a smaller code (less than 60 LOC). |
| キーワード |
(和) |
コメント / コメントアウト / オープンソース開発 / メトリクス / フォールト潜在予測 / / / |
| (英) |
comment / comment-out / open source development / metrics / fault-proneness prediction / / / |
| 文献情報 |
信学技報, vol. 110, no. 305, KBSE2010-25, pp. 13-18, 2010年11月. |
| 資料番号 |
KBSE2010-25 |
| 発行日 |
2010-11-17 (KBSE) |
| ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
| PDFダウンロード |
KBSE2010-25 |