Refactoring in Ruby (Paperback)
暫譯: Ruby 重構技術 (平裝本)
William C. Wake, Kevin Rutherford
- 出版商: Addison Wesley
- 出版日期: 2009-10-25
- 售價: $1,575
- 貴賓價: 9.5 折 $1,496
- 語言: 英文
- 頁數: 288
- 裝訂: Paperback
- ISBN: 0321545044
- ISBN-13: 9780321545046
-
相關分類:
Ruby、Refactoring
立即出貨
買這商品的人也買了...
-
$490$387 -
$880$695 -
$450$356 -
$299$236 -
$880$695 -
$420$332 -
$690$538 -
$420$332 -
$880$695 -
$990$891 -
$1,200$948 -
$620$527 -
$880$695 -
$1,140Ruby Best Practices (Paperback)
-
$580$458 -
$690$538 -
$560$442 -
$540$427 -
$520$411 -
$490$387 -
$580$458 -
$1,200$948 -
$680$537 -
$590$460 -
$680$578
相關主題
商品描述
The First Hands-On, Practical, All-Ruby Refactoring Workbook!
Refactoring–the art of improving the design of existing code–has taken the world by storm. So has Ruby. Now, for the first time, there’s a refactoring workbook designed from the ground up for the dynamic Ruby language.
Refactoring in Ruby gives you all the realistic, hands-on practice you need to refactor Ruby code quickly and effectively. You’ll discover how to recognize “code smells,” which signal opportunities for improvement, and then perfect your program’s design one small, safe step at a time.
The book shows you when and how to refactor with both legacy code and during new test-driven development, and walks you through real-world refactoring in detail. The workbook concludes with several applications designed to help practice refactoring in realistic domains, plus a handy code review checklist you’ll refer to again and again. Along the way, you’ll learn powerful lessons about designing higher quality Ruby software–lessons that will enable you to experience the joy of writing consistently great code.
Refactoring in Ruby will help you
- Recognize why poor code design occurs, so you can prevent it from occurring in your own code
- Master better design techniques that lead to more efficient, reliable, and maintainable software
- Fix code that’s too long, large, or difficult to follow
- Ferret out duplication, and express each idea “once and only once”
- Recognize missing or inadequately formed classes
- Simplify overly complex relationships between classes and their subclasses
- Achieve the right balance of responsibilities among objects
- Make your code easier to test and change
- Cope with incomplete library modules, and fix runaway dependencies
- Learn the next steps to take after you refactor
商品描述(中文翻譯)
第一本實作性強、實用的全Ruby重構工作手冊!
重構——改善現有程式碼設計的藝術——已經席捲全球。Ruby 也同樣如此。現在,首次推出專為動態 Ruby 語言量身打造的重構工作手冊。
Ruby 重構提供了所有現實的、實作性的練習,讓你能夠快速且有效地重構 Ruby 程式碼。你將學會如何識別“程式碼異味”,這些異味暗示著改進的機會,然後一步一步安全地完善你的程式設計。
本書展示了在舊有程式碼和新的測試驅動開發中,何時以及如何進行重構,並詳細介紹了現實世界中的重構過程。工作手冊最後包含幾個應用案例,旨在幫助你在現實領域中練習重構,還有一份方便的程式碼審查檢查表,你將不斷參考。在這個過程中,你將學到設計高品質 Ruby 軟體的強大課題——這些課題將使你體驗到持續編寫優秀程式碼的樂趣。
Ruby 重構將幫助你
- 識別為何會出現不良程式碼設計,以便你能在自己的程式碼中防止這種情況發生
- 掌握更好的設計技術,從而實現更高效、可靠和可維護的軟體
- 修正過長、過大或難以理解的程式碼
- 找出重複,並“只表達一次”每個想法
- 識別缺失或不充分形成的類別
- 簡化類別及其子類別之間過於複雜的關係
- 在物件之間達成適當的責任平衡
- 使你的程式碼更容易測試和修改
- 應對不完整的庫模組,並修正不斷增長的依賴關係
- 學習在重構之後應該採取的下一步