Technical Meeting

プログラムの変更履歴に基づくリファクタリング支援

A Technique for Supporting Refactoring Based on Program Modification

林 晋平, 栗原 正仁

Shinpei Hayashi, Masahito Kurihara

電子情報通信学会技術研究報告, vol. 104, no. 242, pp. 13–18, はこだて未来大学, 北海道, August 2004.

Abstract

リファクタリングはソフトウェアの外的振る舞いを保存したままその品質を改善するための有効な手法であるが,適切なリファクタリングの選択やその適用箇所の決定には高度な知識や経験を必要とし,簡単ではない.本稿では,プログラムの変更履歴を用いてそれらを示す手法を提案する.システムが変更履歴を参照することにより,開発者の意図を汲んだ提示を迅速かつ自動的に行うことが可能になる.本稿では,一連の変更と変更パターンとをパターンマッチさせることにより提示すべきリファクタリングを決定するシステムを作成し,提案手法の実現可能性を示した.

Abstract (English)

Refactoring is one of the promising techniques for improving software design by means of program transformation with preserving behavior, and is widely taken into practice. But it isn't easy that identifying where to apply which refactoring because it requires proper knowledges and experiences. In this paper, we propose the technique to suggesting refactoring using a sequence of program modifications. Our technique could suggest which refactoring is suitable by considering developer's intentions. It is done by efficiently and automatically. We illustrate the feasibility of our approach with the development of system which selects refactoring by matching between a sequence of modifications and modification patterns.

Related papers

Continued in

BibTeX

@article{hayashi-sigss200408,
    author = {林 晋平 and 栗原 正仁},
    title = {プログラムの変更履歴に基づくリファクタリング支援},
    journal = {電子情報通信学会技術研究報告},
    volume = 104,
    number = 242,
    pages = {13--18},
    year = 2004,
}
Type
Technical Meeting
Location
はこだて未来大学, 北海道
Presented
August 2, 2004
Volume / Pages
vol. 104, no. 242, pp. 13–18