Decomposing and Redistributing the Statement Method

Refactoring: Improving the Design of Existing Code

Decomposing and Redistributing the Statement Method The obvious first target of my attention is the overly long statement method. When I look at a long method like that, I am looking to decompose the method into smaller pieces. Smaller pieces of code tend to make things more manageable. They are easier to work with and move around.

原文地址:https://www.cnblogs.com/rsapaper/p/5922413.html