Technical Meeting
機能捜索結果を用いたプレファクタリング支援
Supporting Prefactoring Using Feature Location Results
電子情報通信学会技術研究報告, vol. 114, no. 127, pp. 109–114, 富良野文化会館, 北海道, July 2014.
Abstract
リファクタリングを適用すべき箇所を特定するために,ソースコード中の不吉な臭いを検出する手法がこれまでに提案されている.しかし,特定の機能を実装しようとしている開発者にとっては,現在のソースコード全体にわたって臭いを検出する既存手法の検出結果は適さない.本稿では,注目する機能の実装に関連する臭いを検出することにより,実装を容易にするために実装前にプログラムの構造を改善するプレファクタリングを支援する手法を提案する.提案手法では機能実装により起こる設計の劣化の度合いを機能実装前に推測するために,機能捜索手法によって得られたモジュール群に対して,機能実装によって引き起こる設計劣化を模倣するダミーコードを挿入する.ダミーコード挿入前後でのソースコードを臭い検出器に適用し,得られた臭いの検出結果を比較することで,対象としている機能の実装に強く関連する臭いを特定する.いくつかの予備評価により,提案手法が有効に機能する場合があることを確認した.
Abstract (English)
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.
BibTeX
@article{komatsuda-sigss201407,
author = {小松田 卓也 and 林 晋平 and 佐伯 元司},
title = {機能捜索結果を用いたプレファクタリング支援},
journal = {電子情報通信学会技術研究報告},
volume = 114,
number = 127,
pages = {109--114},
year = 2014,
}
- Type
- Technical Meeting
- Location
- 富良野文化会館, 北海道
- Presented
- July 11, 2014
- Volume / Pages
- vol. 114, no. 127, pp. 109–114