欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

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

发布时间:2023/12/19 编程问答 30 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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的培训材料的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。