1.Duplicated Code Same expression in two methods of the same class: Extract Method Same expression in two sibling subclass:Extract Method ,then Pull Up Field Duplicated code in two unrelated classs:Extract Class/The method belongs only in one class and be invoked by the other class.
2.Long Method A heuristic we follow is that whenever we feel the needd to comment something,we write a method instead(Extract Method).A good technology to identify the clumps of code to extract is to look for comments.Conditionals and loops also give signs for extraction.
3.Large Class Extract Method
4.Long Parameters List Replace Parameter with Method, Preserve Whole Object, Introduce Parameter Object.
5.Divergent Change Extract Class.
6.Shotgun Surgery Move Method, Move Field, Inline Class,.