重构书籍以进行集中编程?

羊皮

退休程序员
工作人员
已加入
2018年9月5日
留言内容
1,921
地点
英国
编程经验
10+
有人读过吗? 重构 如果是这样,那有什么好处吗?

I am looking for a book on 重构. Specifically one which addresses how to stay focused and addresses the issues of concentration loss while 重构. If anyone has further suggestions on other books which have helped you, I'd love to hear what they are as I am looking to upgrade my library with a collection of some decent new books for my book shelf.
 

跳伞

工作人员
已加入
2019年4月6日
留言内容
2,497
地点
弗吉尼亚州切萨皮克
编程经验
10+
我之所以推荐这本书来进行重构(不是本书的开创者)的原因是,他使重构的工作如此"mechanical"因为他建议对代码的任何部分一次只进行一种重构,然后立即运行单元测试(然后在成功时进行源代码控制)。这不像"refactoring"人们倾向于将其列入冲刺进度表,这无意间实际上是"重新设计和重新设计". Yes, the 重构 that Fowler advocates is a form of redesigning, but they are usually tactical changes, not strategic changes. Yes there places where he does recommend some design patterns which would require strategic changes, but sets things up so that 机械 changes get you there safely and efficiently.
 
最佳 底部