圖書標籤: 重構 refactoring Programming 軟件工程 編程 計算機 程序設計 經典
发表于2024-06-20
Refactoring pdf epub mobi txt 電子書 下載 2024
Refactoring is about improving the design of existing code. It is the process of changing a software system in such a way that it does not alter the external behavior of the code, yet improves its internal structure. With refactoring you can even take a bad design and rework it into a good one. This book offers a thorough discussion of the principles of refactoring, including where to spot opportunities for refactoring, and how to set up the required tests. There is also a catalog of more than 40 proven refactorings with details as to when and why to use the refactoring, step by step instructions for implementing it, and an example illustrating how it works The book is written using Java as its principle language, but the ideas are applicable to any OO language.
因為Programmer's ranting裏有一篇吐槽說很多程序員隻是skim瞭這本書沒有認真讀 所以重新讀瞭遍;上次讀我還在用Java 這次是一邊讀一邊對照Python想“這個在Python裏根本就沒必要” “自動化重構工具有很多好處我們隻能站在一邊看看瞭”
評分對我而言,代碼的藝術性從此成為可能,不過比起通讀更適閤查閱
評分Only understand 40%.
評分3年前看的是草稿,電子版.秉承Martin Fowler的風格,很多的代碼,很實用,就是有點不厭其煩,這或許就是老外寫書的共同特點吧.
評分據說是重構領域的經典 ^_^ recommended by code health team.
整体通俗易懂, 翻译过程有些小错, 不知道有没有勘误表 (1)184页下面范例跳了好几步 (2)187页范例, 数组说三个元素,代码只列出两个, "失败场次"没有了, (3)282页, 的代码sentAlert()函数好像有问题, 变成递归了. (4)306页, Raname Method明显是印刷错误了.
評分《重构》给我最大的收获,其实是想法而非技巧。 开发人员的完美主义倾向,容易变成他们做Big Design Up Front的驱动力。而在现实的环境中,时间、资源等约束条件,通常不会允许我们进行过于详细的设计。 我认为最好的做法是,轻量级的设计 + 适当的重构,迭代地开发出满足各...
評分纸张很赞,只是排版松散,书就比较厚了。 本人对代码有洁癖,不自觉的一直会调整过去的代码,也需要对照大师总结的规律反思一下。 重构的基础能力在于能够嗅出代码中的坏味道(Bad smell),甚至反模式(Anti-pattern),因此要结合相关书籍一起阅读了。 最近在看的肖鹏一篇文...
評分这本书一开始读的是英文,不过Martin Fowler本身好像就不是一个Native的英语国家的人。所以他的英文写的也是比较容易懂的。 这个书第一章是一个完整的重构的例子,虽然现实中不可能如此完美而孜孜不倦的重构,不过作为一个例子,是非常的好的,让你能为重构的力量所震...
評分第一遍于两年前, 让我了解到bad smell们, 还有那冗长的手法catalog. 最近第二遍, 回顾过去, 虽然bad smell的提示和重构操作已经完全融入现代IDE中了, 但总结下来它对我的影响还有如下: 1.我常常通过重构来加深对代码的理解. 2.让我变成一个十足的代码洁癖者, "刻"代码上瘾...
Refactoring pdf epub mobi txt 電子書 下載 2024