Refactoring: Ruby Edition: Ruby Edition (Addison-Wesley Professional Ruby Series)
暫譯: 重構:Ruby 版(Addison-Wesley 專業 Ruby 系列)
Jay Fields, Shane Harvie, Martin Fowler, Kent Beck
- 出版商: Addison Wesley
- 出版日期: 2009-10-15
- 售價: $2,040
- 貴賓價: 9.5 折 $1,938
- 語言: 英文
- 頁數: 480
- 裝訂: Paperback
- ISBN: 0321984137
- ISBN-13: 9780321984135
-
相關分類:
Ruby、Refactoring
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$500$450 -
$940$700 -
$356SaaS軟件工程(雲計算時代的敏捷開發)
-
$898Debugging Teams: Better Productivity through Collaboration (Paperback)
-
$2,030$1,929 -
$354$336 -
$790$616 -
$540$459 -
$2,043$1,935 -
$1,107Docker for Rails Developers
-
$1,800$1,710 -
$520$411 -
$580$458 -
$680$537 -
$600$468 -
$690$538 -
$680$578 -
$620$310 -
$620$484 -
$444騰訊游戲開發精粹Ⅱ
-
$509有趣的 Flutter : 從 0到 1構建跨平臺App
-
$620$465 -
$690$538 -
$1,428$1,357 -
$720$568
相關主題
商品描述
The Definitive Refactoring Guide, Fully Revamped for Ruby
With refactoring, programmers can transform even the most chaotic software into well-designed systems that are far easier to evolve and maintain. What’s more, they can do it one step at a time, through a series of simple, proven steps. Now, there’s an authoritative and extensively updated version of Martin Fowler’s classic refactoring book that utilizes Ruby examples and idioms throughout–not code adapted from Java or any other environment.
The authors introduce a detailed catalog of more than 70 proven Ruby refactorings, with specific guidance on when to apply each of them, step-by-step instructions for using them, and example code illustrating how they work. Many of the authors’ refactorings use powerful Ruby-specific features, and all code samples are available for download.
Leveraging Fowler’s original concepts, the authors show how to perform refactoring in a controlled, efficient, incremental manner, so you methodically improve your code’s structure without introducing new bugs. Whatever your role in writing or maintaining Ruby code, this book will be an indispensable resource.
This book will help you
• Understand the core principles of refactoring and the reasons for doing it
• Recognize “bad smells” in your Ruby code
• Rework bad designs into well-designed code, one step at a time
• Build tests to make sure your refactorings work properly
• Understand the challenges of refactoring and how they can be overcome
• Compose methods to package code properly
• Move features between objects to place responsibilities where they fit best
• Organize data to make it easier to work with
• Simplify conditional expressions and make more effective use of polymorphism
• Create interfaces that are easier to understand and use
• Generalize more effectively
• Perform larger refactorings that transform entire software systems and may take months or years
• Successfully refactor Ruby on Rails code
商品描述(中文翻譯)
《徹底重構指南,全面改版為 Ruby》
透過重構,程式設計師可以將即使是最混亂的軟體轉變為設計良好的系統,這些系統更容易演進和維護。而且,他們可以一步一步地進行,透過一系列簡單且經過驗證的步驟。現在,有一本權威且經過廣泛更新的 Martin Fowler 經典重構書籍版本,整本書都使用 Ruby 的範例和慣用法,而不是從 Java 或其他環境改編的程式碼。
作者介紹了超過 70 種經過驗證的 Ruby 重構的詳細目錄,並提供了具體的指導,說明何時應用每一種重構,逐步的使用說明,以及示範程式碼來說明它們的運作方式。許多作者的重構使用了強大的 Ruby 特有功能,所有程式碼範例均可下載。
利用 Fowler 的原始概念,作者展示了如何以受控、高效、漸進的方式進行重構,讓你有條不紊地改善程式碼的結構,而不引入新的錯誤。無論你在撰寫或維護 Ruby 程式碼中扮演什麼角色,這本書都將是不可或缺的資源。
這本書將幫助你:
• 理解重構的核心原則及其原因
• 辨識 Ruby 程式碼中的「壞味道」
• 將不良設計逐步重構為設計良好的程式碼
• 建立測試以確保你的重構正常運作
• 理解重構的挑戰及如何克服它們
• 組合方法以正確包裝程式碼
• 在物件之間移動功能,以將責任放置在最合適的位置
• 組織資料以便於操作
• 簡化條件表達式並更有效地利用多型
• 創建更易於理解和使用的介面
• 更有效地進行泛化
• 執行更大規模的重構,轉變整個軟體系統,可能需要數月或數年
• 成功重構 Ruby on Rails 程式碼