Refactoring
Insightful
Intense
Unique

Refactoring Ruby Edition: Ruby Edition

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
Sign up to use

Reviews

Photo of Mateusz Gostanski
Mateusz Gostanski@mgostanski
5 stars
Dec 14, 2023
Unique
Intense
Insightful
Photo of Georgi Mitrev
Georgi Mitrev@gmitrev
4 stars
Jul 4, 2023
Photo of Joe Maddalone
Joe Maddalone@joemaddalone
3 stars
Feb 25, 2023
Photo of Sapan Parikh
Sapan Parikh@sapan
5 stars
Jan 28, 2023
Photo of Bruce Wang
Bruce Wang@number5
5 stars
Jan 12, 2023
Photo of Julien Sobczak
Julien Sobczak@julien-sobczak
5 stars
Oct 22, 2022
Photo of Hans Gerwitz
Hans Gerwitz@gerwitz
5 stars
Aug 20, 2022
Photo of Dweedle
Dweedle @dw33dle
5 stars
Aug 16, 2022
Photo of Carlos Becker
Carlos Becker@caarlos0
5 stars
Aug 12, 2022
Photo of Milan Aleksić
Milan Aleksić@milanaleksic
5 stars
Aug 12, 2022
Photo of Sven
Sven@sod
3 stars
Jul 29, 2022
Photo of mercy
mercy@mercy
3 stars
Jul 24, 2022
Photo of Recep Karabicak
Recep Karabicak@irecep
5 stars
Feb 17, 2022
Photo of Ryan B Harvey
Ryan B Harvey@codeanddata
5 stars
Jan 8, 2022
Photo of Sahi K
Sahi K@sahibooknerd
4 stars
Jan 5, 2022
Photo of Luke Kanies
Luke Kanies@lak
5 stars
Dec 4, 2021
Photo of Nikolay Bachiyski
Nikolay Bachiyski@nb
5 stars
Nov 19, 2021
Photo of Kevin S Perrine
Kevin S Perrine@kevinsperrine
5 stars
Sep 22, 2021
Photo of Soner Eker
Soner Eker@soner
5 stars
Aug 14, 2021
Photo of Pedro Giménez
Pedro Giménez@pedro
3 stars
Aug 12, 2021
Photo of Adam
Adam@adamvig
4 stars
Jul 30, 2021
Photo of Thomas Karstens
Thomas Karstens @tpei
5 stars
Jul 30, 2021
Photo of Mike Pearce
Mike Pearce@mikepearce
3 stars
Jul 30, 2021
Photo of Aaron Bach
Aaron Bach@bachya
4 stars
Jul 27, 2021