Jerry制作的软件工程里Design for Change的培训材料

•If repeating data comprises the fields of a class, use Extract Class to move the fields to their own class.

•If the same data clumps are passed in the parameters of methods, use Introduce Parameter Object to set them off as a class.

•If some of the data is passed to other methods, think about passing the entire data object to the method instead of just individual fields. Preserve Whole Object will help with this.

•Look at the code used by these fields. It may be a good idea to move this code to a data class.

Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料Jerry制作的软件工程里Design for Change的培训材料

上一篇:软件工程结对作业01


下一篇:【坐在马桶上看算法】算法7:Dijkstra最短路算法