講演抄録/キーワード |
講演名 |
2014-07-11 09:00
機能捜索結果を利用したプレファクタリング支援 小松田卓也・○林 晋平・佐伯元司(東工大) SS2014-20 KBSE2014-23 |
抄録 |
(和) |
リファクタリングを適用すべき箇所を特定するために,ソースコード中の不吉な臭いを検出する手法がこれまでに提案されている.しかし,特定の機能を実装しようとしている開発者にとっては,現在のソースコード全体にわたって臭いを検出する既存手法の検出結果は適さない.本稿では,注目する機能の実装に関連する臭いを検出することにより,実装を容易にするために実装前にプログラムの構造を改善するプレファクタリングを支援する手法を提案する.提案手法では機能実装により起こる設計の劣化の度合いを機能実装前に推測するために,機能捜索手法によって得られたモジュール群に対して,機能実装によって引き起こる設計劣化を模倣するダミーコードを挿入する.ダミーコード挿入前後でのソースコードを臭い検出器に適用し,得られた臭いの検出結果を比較することで,対象としている機能の実装に強く関連する臭いを特定する.いくつかの予備評価により,提案手法が有効に機能する場合があることを確認した. |
(英) |
In order to find the opportunities for applying refactoring, several techniques for detecting bad smells in source code have been proposed. However, existing smell detectors are not suitable for developers who are trying to implement a specific feature because the detectors detect too many smells from the whole source code. In this paper, we propose a technique to detect bad smells specific to the focused feature for supporting prefactoring to improve the extendibility of the program before implementing the feature. In order to estimate the effect of the feature introduction before implementing it, dummy code imitating the deterioration of the design quality is inserted to the modules obtained using the result of a feature location technique. Comparing the detected smells in source code before and after inserting dummy code, we can specify which smells are strongly related to the target feature. Several preliminary evaluations indicated the effectiveness of our technique. |
キーワード |
(和) |
リファクタリング / 機能捜索 / 不吉な臭い / / / / / |
(英) |
refactoring / feature location / bad smells in source code / / / / / |
文献情報 |
信学技報, vol. 114, no. 127, SS2014-20, pp. 109-114, 2014年7月. |
資料番号 |
SS2014-20 |
発行日 |
2014-07-03 (SS, KBSE) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
SS2014-20 KBSE2014-23 |