Senior developers and code reviewers
When reviewing a pull request with complex conditional logic that is hard to follow.
Refactoring Techniques is a comprehensive mind map template that catalogs 122 refactoring techniques across 7 major categories, including 'éæ°ç»ç»åœæ°' (Composing Methods), 'åšå¯¹è±¡éŽæ¬ç§»ç¹æ§' (Moving Features Between Objects), and 'ç®åæ¡ä»¶è¡šèŸŸåŒ' (Simplifying Conditional Expressions). This template serves as a cheat sheet for software developers and architects seeking to improve code quality without altering external behavior. Key techniques such as 'Extract Method', 'Replace Temp with Query', and 'Introduce Null Object' are explicitly defined with their intent and usage context. The map also covers advanced patterns like 'Replace Inheritance with Delegation' and 'Form Template Method', making it a practical reference for daily refactoring decisions. Whether you're cleaning up legacy code or designing new systems, this mind map provides a structured overview of proven refactoring techniques.
å©çšèŠçŽWhen reviewing a pull request with complex conditional logic that is hard to follow.
During a legacy code cleanup sprint where you need to break down large classes into smaller, focused ones.
When designing a new module and you want to avoid common design pitfalls by applying refactoring patterns proactively.
åš Xmind äžæåŒæš¡æ¿å¹¶æ ¹æ®äžå€§æ žå¿å类快éå®äœæšåœåé¢äžŽç代ç åŒå³é®é¢ã
ç¹å»å ·äœçéæææ¯èç¹ä»¥æ¥çå ¶è¯Šç»å®ä¹ïŒå¹¶æ ¹æ®å®é 项ç®éæ±æ·»å 䞪æ§åç代ç ç€ºäŸæç¬è®°ã
å°å®ååçéææç»Žå¯ŒåŸå¯ŒåºäžºåŸçæ PDF æä»¶ïŒäœäžºå¢éæå代ç 莚éçæ¥åžžææ¯æåã
The template covers 122 techniques across 7 categories: Composing Methods, Moving Features Between Objects, Organizing Data, Simplifying Conditional Expressions, Making Method Calls Simpler, Dealing with Generalization, and Big Refactorings. Each technique includes a brief description and context.
Open the .xmind file in Xmind, browse the category that matches your code smell (e.g., 'ç®åæ¡ä»¶è¡šèŸŸåŒ' for complex conditionals), and apply the suggested technique like 'Replace Nested Conditional with Guard Clauses' directly to your code.
Yes, the template is free to download and fully editable in Xmind. You can add your own examples, notes, or reorganize the branches to fit your project's specific refactoring needs.
'Replace Inheritance with Delegation' is used when a subclass only uses part of the superclass interface, while 'Replace Delegation with Inheritance' applies when delegation becomes too verbose and inheritance simplifies the design.
Absolutely. You can add checkboxes, priority markers, or notes to each technique node to track which refactorings you've applied or plan to apply in your codebase.
ããªãã®ãã€ã³ãããã ãã³ãã¬ãŒããäžçäžã®ã¯ãªãšã€ã¿ãŒãšå ±æããŠãäœåããåå ¥ãåŸãŸãããã