잡담

Refactoring

tomato13 2007. 2. 20. 15:57

http://www.refactoring.com/catalog/moveClass.html

 

의미만을 파악 공감
Add Parameter  O
Change Bidirectional Association to Unidirectional  O
Change Reference to Value  O
Change Unidirectional Association to Bidirectional   O
Change Value to Reference  O
Collapse Hierarchy  O
Consolidate Conditional expression  o
Consolidate Duplicate Conditional Fragments   o
Convert Dynamic to Static Construction by Gerard M. Davison  x
Convert Static to Dynamic Construction by Gerard M. Davison  x
Decompose Conditional  o
Duplicate Observed Data  o
Eliminate Inter-Entity Bean Communication (Link only)  x
Encapsulate Collection  x
Encapsulate Downcast  x
Encapsulate Field  o
Extract Class  o
Extract Interface  o
Extract Method  o
Extract Package by Gerard M. Davison  o
Extract Subclass  o
Extract Superclass  o
Form Template Method  o
Hide Delegate  o
Hide Method  o
Hide presentation tier-specific details from the business tier (Link only)  x
Inline Class  o
Inline Method 
Inline Temp 
Introduce A Controller (Link only)  x
Introduce Assertion  o
Introduce Business Delegate (Link only) 
Introduce Explaining Variable  o
Introduce Foreign Method  o
Introduce Local Extension  
Introduce Null Object 
Introduce Parameter Object  
Introduce Synchronizer Token (Link only) 
Localize Disparate Logic (Link only) 
Merge Session Beans (Link only) 
Move Business Logic to Session (Link only) 
Move Class by Gerard M. Davison 
Move Field 
Move Method  
Parameterize Method  
Preserve Whole Object 
Pull Up Constructor Body 
Pull Up Field 
Pull Up Method 
Push Down Field 
Push Down Method 
Reduce Scope of Variable by Mats Henricson 
Refactor Architecture by Tiers (Link only) 
Remove Assignments to Parameters 
Remove Control Flag 
Remove Double Negative by Ashley Frieze and Martin Fowler 
Remove Middle Man 
Remove Parameter 
Remove Setting Method  
Rename Method 
Replace Array with Object 
Replace Assignment with Initialization by Mats Henricson 
Replace Conditional with Polymorphism 
Replace Conditional with Visitor by Ivan Mitrovic 
Replace Constructor with Factory Method  
Replace Data Value with Object 
Replace Delegation with Inheritance 
Replace Error Code with Exception 
Replace Exception with Test 
Replace Inheritance with Delegation 
Replace Iteration with Recursion by Dave Whipp 
Replace Magic Number with Symbolic Constant  
Replace Method with Method Object  
Replace Nested Conditional with Guard Clauses 
Replace Parameter with Explicit Methods 
Replace Parameter with Method 
Replace Record with Data Class 
Replace Recursion with Iteration by Ivan Mitrovic 
Replace Static Variable with Parameter by Marian Vittek 
Replace Subclass with Fields 
Replace Temp with Query  
Replace Type Code with Class  
Replace Type Code with State/Strategy 
Replace Type Code with Subclasses 
Reverse Conditional by Bill Murphy and Martin Fowler 
Self Encapsulate Field 
Separate Data Access Code (Link only) 
Separate Query from Modifier 
Split Loop by Martin Fowler 
Split Temporary Variable 
Substitute Algorithm 
Use a Connection Pool (Link only) 
Wrap entities with session (Link only) 

'잡담' 카테고리의 다른 글

TC구현  (0) 2007.03.01
Test Case Code의 무결성을 입증  (0) 2007.02.28
XUnit Test Patterns  (0) 2007.02.19
Ave verum corpus  (0) 2007.02.19
callback function  (0) 2007.02.12