zl程序教程

您现在的位置是:首页 >  其它

当前栏目

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

for 制作 培训 Design Change 软件工程 材料 Jerry
2023-09-14 09:02:52 时间

•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.

clipboard1 clipboard2 clipboard3 clipboard4 clipboard5 clipboard6 clipboard7 clipboard8 clipboard9 clipboard10 clipboard11 clipboard12 clipboard13 clipboard14 clipboard15 clipboard16 clipboard17 clipboard18 clipboard19