网页 综合 更新时间 2026-11-13 19:16:42

Catalog of Refactorings

自动蜘蛛 refactoring.com 正文约 1547 字
This is the online catalog of refactorings, to support my book Refactoring 2nd Edition.
This catalog of refactorings includes those refactorings described in my original book on Refactoring, together with the Ruby Edition.
I've put together this catalog to help you find and explore the refactorings the 2nd edition. Each card shows the name used in the second edition together with any aliases for the refactoring (such as names for first edition refactorings that it replaces). The card links to the refactoring's online page. This page also contains the sketch for the refactoring.
The filter panel at the left allows you to select the refactorings by keyword, and also by which books they appear in. You can save the current filter settings to a URL by using the “#” permalink at the bottom of the filter panel.
Add Parameter • Change Signature • Remove Parameter • Rename Function • Rename Method
Replace Record with Data Class
Encapsulate Field • Self-Encapsulate Field
Introduce Explaining Variable
Introduce Null Object
Replace Parameter with Explicit Methods
Replace Subclass with Fields
Replace Constructor with Factory Method
Replace Exception with Test
Replace Method with Method Object
Replace Magic Number with Symbolic Constant
Replace Parameter with Method
Replace Data Value with Object • Replace Type Code with Class
Replace Inheritance with Delegation
Extract Subclass • Replace Type Code with State/Strategy
Consolidate Duplicate Conditional Fragments
Remove Assignments to Parameters • Split Temp
© Martin Fowler | Disclosures
访问原文 返回搜索 https://refactoring.com/catalog
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。