TOP

このエントリーをはてなブックマークに追加

リファクタリング技法

ここではCode Smellを解消するために参考となるリファクタリング技法や、その他参考になりそうな概念を紹介していこうと思います。

リファクタリングに関してはこの辺りの書籍が参考になると思います。


リファクタリング第2版
refactoring
レガシーコード改善ガイド
legacy_code

関連するリファクタリング技法

Simplifying Method Calls

Simplifying Method Calls

Rename Method

Rename Method

Add Parameter

Add Parameter

Remove Parameter

Remove Parameter

Separate Query from Modifier

Separate Query from Modifier

Parameterize Method

Parameterize Method

Replace Parameter with Explicit Methods

Replace Parameter with Explicit Methods

Preserve Whole Object

Preserve Whole Object

Replace Parameter with Method Call

Replace Parameter with Method Call

Introduce Parameter Object

Introduce Parameter Object

Remove Setting Method

Remove Setting Method

Hide Method

Hide Method

Replace Constructor with Factory Method

Replace Constructor with Factory Method

Replace Error Code with Exception

Replace Error Code with Exception

Replace Exception with Test

Replace Exception with Test