| Smell (กลิ่นเหม็น) | Common Refactorings (refactoring ที่พบบ่อย) |
|---|---|
| Alternative Classes with Different Interfaces (คลาสทางเลือกที่มี Interface ต่างกัน) (83) | Change Function Declaration (เปลี่ยนการประกาศฟังก์ชัน) (124) , Move Function (ย้าย Function) (198) , Extract Superclass (แยก Superclass) (375) |
| Comments (คอมเมนต์) (84) | Extract Function (แยก Function) (106) , Change Function Declaration (เปลี่ยนการประกาศฟังก์ชัน) (124) , Introduce Assertion (เพิ่ม Assertion) (302) |
| Data Class (คลาสข้อมูล) (83) | Encapsulate Record (ห่อหุ้ม Record) (162) , Remove Setting Method (ลบ Setting Method) (331) , Move Function (ย้าย Function) (198) , Extract Function (แยก Function) (106) , Split Phase (แยก Phase) (154) |
| Data Clumps (กลุ่มข้อมูลที่มาด้วยกัน) (78) | Extract Class (แยก Class) (182) , Introduce Parameter Object (เพิ่ม Parameter Object) (140) , Preserve Whole Object (ส่งทั้ง Object) (319) |
| Divergent Change (การเปลี่ยนแปลงที่แยกจากกัน) (76) | Split Phase (แยก Phase) (154) , Move Function (ย้าย Function) (198) , Extract Function (แยก Function) (106) , Extract Class (แยก Class) (182) |
| Duplicated Code (โค้ดที่ซ้ำกัน) (72) | Extract Function (แยก Function) (106) , Slide Statements (เลื่อนตำแหน่ง Statements) (223) , Pull Up Method (ย้าย Method ขึ้นไปใน Superclass) (350) |
| Feature Envy (ความอิจฉาฟีเจอร์) (77) | Move Function (ย้าย Function) (198) , Extract Function (แยก Function) (106) |
| Global Data (ข้อมูลระดับ Global) (74) | Encapsulate Variable (ห่อหุ้ม Variable) (132) |
| Insider Trading (การซื้อขายข้อมูลภายใน) (82) | Move Function (ย้าย Function) (198) , Move Field (ย้าย Field) (207) , Hide Delegate (ซ่อน Delegate) (189) , Replace Subclass with Delegate (แทน Subclass ด้วย Delegate) (381) , Replace Superclass with Delegate (แทน Superclass ด้วย Delegate) (399) |
| Large Class (คลาสขนาดใหญ่) (82) | Extract Class (แยก class) (182) , Extract Superclass (แยก superclass) (375) , Replace Type Code with Subclasses (แทน type code ด้วย subclass) (362) |
| Lazy Element (องค์ประกอบที่ไร้ประโยชน์) (80) | Inline Function (ยุบรวม Function) (115) , Inline Class (ยุบรวม Class) (186) , Collapse Hierarchy (ยุบรวม Hierarchy) (380) |
| Long Function (ฟังก์ชันที่ยาวเกินไป) (73) | Extract Function (แยก Function) (106) , Replace Temp with Query (แทน Temp ด้วย Query) (178) , Introduce Parameter Object (เพิ่ม Parameter Object) (140) , Preserve Whole Object (ส่งทั้ง Object) (319) , Replace Function with Command (แทน Function ด้วย Command) (337) , Decompose Conditional (แยก Conditional Expression) (260) , Replace Conditional with Polymorphism (แทน Conditional ด้วย Polymorphism) (272) , Split Loop (แยก Loop) (227) |
| Long Parameter List (รายการพารามิเตอร์ที่ยาวเกินไป) (74) | Replace Parameter with Query (แทน Parameter ด้วย Query) (324) , Preserve Whole Object (ส่งทั้ง Object) (319) , Introduce Parameter Object (เพิ่ม Parameter Object) (140) , Remove Flag Argument (ลบ Flag Argument) (314) , Combine Functions into Class (รวม Functions เข้าเป็น Class) (144) |
| Loops (ลูป) (79) | Replace Loop with Pipeline (แทน Loop ด้วย Pipeline) (231) |
| Message Chains (สายโซ่ของการเรียก Message) (81) | Hide Delegate (ซ่อน Delegate) (189) , Extract Function (แยก Function) (106) , Move Function (ย้าย Function) (198) |
| Middle Man (ตัวกลาง) (81) | Remove Middle Man (ลบ Middle Man) (192) , Inline Function (ยุบรวม Function) (115) , Replace Superclass with Delegate (แทน Superclass ด้วย Delegate) (399) , Replace Subclass with Delegate (แทน Subclass ด้วย Delegate) (381) |
| Mutable Data (ข้อมูลที่แก้ไขได้) (75) | Encapsulate Variable (ห่อหุ้ม Variable) (132) , Split Variable (แยก Variable) (240) , Slide Statements (เลื่อนตำแหน่ง Statements) (223) , Extract Function (แยก Function) (106) , Separate Query from Modifier (แยก Query ออกจาก Modifier) (306) , Remove Setting Method (ลบ Setting Method) (331) , Replace Derived Variable with Query (แทน Derived Variable ด้วย Query) (248) , Combine Functions into Class (รวม Functions เข้าเป็น Class) (144) , Combine Functions into Transform (รวม Functions เข้าเป็น Transform) (149) , Change Reference to Value (เปลี่ยน Reference ให้เป็น Value) (252) |
| Mysterious Name (ชื่อที่คลุมเครือ) (72) | Change Function Declaration (เปลี่ยนการประกาศฟังก์ชัน) (124) , Rename Variable (เปลี่ยนชื่อ Variable) (137) , Rename Field (เปลี่ยนชื่อ Field) (244) |
| Primitive Obsession (การยึดติดกับ Primitive) (78) | Replace Primitive with Object (แทนชนิดข้อมูลพื้นฐานด้วย object) (174) , Replace Type Code with Subclasses (แทน type code ด้วย subclass) (362) , Replace Conditional with Polymorphism (แทน conditional ด้วย polymorphism) (272) , Extract Class (แยก class) (182) , Introduce Parameter Object (เพิ่ม parameter object) (140) |
| Refused Bequest (การปฏิเสธมรดก) (83) | Push Down Method (ย้าย Method ลงไปใน Subclass) (359) , Push Down Field (ย้าย Field ลงไปใน Subclass) (361) , Replace Subclass with Delegate (แทน Subclass ด้วย Delegate) (381) , Replace Superclass with Delegate (แทน Superclass ด้วย Delegate) (399) |
| Repeated Switches (Switch ที่ซ้ำซ้อน) (79) | Replace Conditional with Polymorphism (แทน Conditional ด้วย Polymorphism) (272) |
| Shotgun Surgery (การผ่าตัดด้วยปืนลูกซอง) (76) | Move Function (ย้าย Function) (198) , Move Field (ย้าย Field) (207) , Combine Functions into Class (รวม Functions เข้าเป็น Class) (144) , Combine Functions into Transform (รวม Functions เข้าเป็น Transform) (149) , Split Phase (แยก Phase) (154) , Inline Function (ยุบรวม Function) (115) , Inline Class (ยุบรวม Class) (186) |
| Speculative Generality (ความซับซ้อนที่คาดเดาไปล่วงหน้า) (80) | Collapse Hierarchy (ยุบรวม Hierarchy) (380) , Inline Function (ยุบรวม Function) (115) , Inline Class (ยุบรวม Class) (186) , Change Function Declaration (เปลี่ยนการประกาศฟังก์ชัน) (124) , Remove Dead Code (ลบ Dead Code) (237) |
| Temporary Field (ฟิลด์ชั่วคราว) (80) | Extract Class (แยก Class) (182) , Move Function (ย้าย Function) (198) , Introduce Special Case (เพิ่ม Special Case) (289) |
Font size
Background
Font