Retreat method Extract method independently of the code that can be organized together, and let function names explain the purpose of the function. Can strengthen the clarity of the code. Inline Method's internal code and function names are equally clear, and can remove this function and use them directly. With this method, multiple small functions INLINEs can be used to a large function, and they re-extrapry them. Inline Temp There is a temporary variable that is only assigned a simple expression, and it is replaced with assignment expression. Replace the temporary variable to declare the temporary variable as Final, then compile it, you can check if it is only assigned once. Replace Temp with Query extracts the expression to a separate function. Express its content with a function name. Introducted Explaining Variable puts the results of complex expressions (or part of them) into a temporary variable to explain the use of expressions in this variable name. Temporary variables can be used in a longer algorithm to explain the meaning of each step. Split Temporary Variable If the temporary variable takes a number of responsibilities, it should be replaced (designs) for multiple temporary variables, each variable only assumes a responsibility. For each assignment, create an independent, corresponding temporary variable. Remove Assignments To Parameters The location of this parameter is replaced with a temporary variable when assigning a value to the parameter in the method. Do not assign the parameters in Java. Avoid alter the reference to the incoming object. The code will be clearly available in the parameters "to be passed". Final can be used in a longer function to modify the parameters, allowing it to help check if the parameter has been modified. Replace Method With method Object The value of all local variables becomes the value domain (Field) of the Method Object, and then relatively independent code will be extracted from a large function. Usually the scribe is prefixed as a value domain name. Substitution Algorithm replaces existing algorithms with a clearer algorithm.