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.

posted @ 2016-09-29 23:59  papering  阅读(214)  评论(0编辑  收藏  举报