Jerry制作的软件工程里Design for Change的培训材料
生活随笔
收集整理的这篇文章主要介绍了
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的培训材料的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: python google auth t
- 下一篇: CRM_ORGMAN_CHECK_OW