Refactoring in Ruby (Google eBook)
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
What people are saying - Write a review
Part IThe Art of Refactoring
Chapter 1 A Refactoring Example
Chapter 2 The Refactoring Cycle
Chapter 3 Refactoring Step by Step
Chapter 4 Refactoring Practice
Part IICode Smells
Chapter 5 Measurable Smells
Chapter 6 Names
Chapter 13 Accommodating Change
Chapter 14 Libraries
Part IIIPrograms to Refactor
Chapter 15 A Simple Game
Chapter 16 Time Recording
Chapter 17 Calculator
Appendix A Answers to Selected Questions