Martin Fowler is Chief Scientist at ThoughtWorks. He describes himself as “an author, speaker, consultant and general loud-mouth on software development.” Fowler concentrates on designing enterprise software: exploring what makes a good design and what practices are needed to create one.
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.
Features
The first update to a classic that is the standard reference for refactoring in over 15 years
Enhanced, web-based features including interactive examples, video snippets, code highlighting
Extensive use of JavaScript examples
New to This Edition
Martin Fowler is retaining everything that made Refactoring one of the world’s most popular and influential computer books, while updating with JavaScript examples throughout (to address many programmers’ current preferences) and reflecting today’s programming paradigms. The book’s catalog of individual refactorings has been updated, revised, and expanded.
發表於2024-12-22
Refactoring 2024 pdf epub mobi 電子書 下載
整體通俗易懂, 翻譯過程有些小錯, 不知道有沒有勘誤錶 (1)184頁下麵範例跳瞭好幾步 (2)187頁範例, 數組說三個元素,代碼隻列齣兩個, "失敗場次"沒有瞭, (3)282頁, 的代碼sentAlert()函數好像有問題, 變成遞歸瞭. (4)306頁, Raname Method明顯是印刷錯誤瞭.
評分整體通俗易懂, 翻譯過程有些小錯, 不知道有沒有勘誤錶 (1)184頁下麵範例跳瞭好幾步 (2)187頁範例, 數組說三個元素,代碼隻列齣兩個, "失敗場次"沒有瞭, (3)282頁, 的代碼sentAlert()函數好像有問題, 變成遞歸瞭. (4)306頁, Raname Method明顯是印刷錯誤瞭.
評分適閤寫過兩年代碼的開發人員的一本書。 示範代碼難度不是很高,主要就是理解裏麵的一種精神瞭。 我纔看瞭一章,希望能堅持看完。
評分重構是設計,設計是art,重構也是art. 一個函數三行隻是語不驚人死不休的說法,是對成百上韆行代碼的矯枉過正。 更一個般的看法是一個函數應該寫在一頁紙內。但舉一個上百行的極端例子也是可能的。比如某種數值計算。 重構的意義應該在XP的背景下看,如果沒有重構,XP的方法從...
評分適閤寫過兩年代碼的開發人員的一本書。 示範代碼難度不是很高,主要就是理解裏麵的一種精神瞭。 我纔看瞭一章,希望能堅持看完。
圖書標籤: refactor Programming 程序設計 計算機 JavaScript 重構 2nd 軟件工程
雖然例子是用JS寫的,思想都是通的。前幾章看完幫助非常大,很多平時寫代碼時候會糾結的地方從這裏可以找到答案。講的原則可操作性非常強,很多思想可以直接影響現在的工作方式。具體每個重構技巧比較繁雜,沒仔細看完,可以有需要再拿齣來翻。印象深刻的幾個點:“不要專門和老闆說我要重構,而是作為功能的一部分”,“保持修改後的代碼比現在的代碼好”,“大部分情況:可讀性>性能”,“profiling找性能瓶頸,直覺大部分情況是錯的”解決。
評分比之第一版,更注重細節功夫,重構過程更完備更流程,更注重行為保持,大規模的重構全部刪去。可以體現作者的理念:於細節處見成敗。
評分比之第一版,更注重細節功夫,重構過程更完備更流程,更注重行為保持,大規模的重構全部刪去。可以體現作者的理念:於細節處見成敗。
評分學習瞭JavaScript的一些新語法。
評分第二版有瞭不少改進,比如代碼換成瞭js(用的是最新的ES語法),重構都配瞭示意圖。收獲非常大。
Refactoring 2024 pdf epub mobi 電子書 下載