Refactoring and over 1.5 million other books are available for Amazon Kindle . Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
Buy Used
Used - Very Good See details
Price: £19.16

or
Sign in to turn on 1-Click ordering.
 
   
Trade in Yours
For a £7.25 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Start reading Refactoring on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Refactoring: Improving the Design of Existing Code (Object Technology Series) [Hardcover]

Martin Fowler , Kent Beck , John Brant , William Opdyke , Don Roberts
4.5 out of 5 stars  See all reviews (30 customer reviews)
RRP: £41.99
Price: £29.39 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £12.60 (30%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 4 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want delivery by Thursday, 23 May? Choose Express delivery at checkout. See Details

Formats

Amazon Price New from Used from
Kindle Edition £15.19  
Hardcover £29.39  
Paperback --  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Visit the Books Trade-In Store for more details. Learn more.

Book Description

28 Jun 1999 0201485672 978-0201485677 1

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.


Frequently Bought Together

Refactoring: Improving the Design of Existing Code (Object Technology Series) + Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin) + Working Effectively with Legacy Code (Robert C. Martin)
Price For All Three: £77.59

Buy the selected items together


Product details


More About the Authors

Discover books, learn about writers, and more.

Product Description

Amazon Review

Your class library works, but could it be better? Refactoring: Improving the Design of Existing Code shows how refactoring can make object-oriented code simpler and easier to maintain. Today, refactoring requires considerable design know-how, but once tools become available, all programmers should be able to improve their code using refactoring techniques.

Besides an introduction to what refactoring is, this handbook provides a catalogue of dozens of tips for improving code. The best thing about Refactoring is its remarkably clear presentation, along with excellent nuts-and-bolts advice, from object expert Martin Fowler. The author is also an authority on software patterns and UML, and this experience helps make this a better book, one that should be immediately accessible to any intermediate or advanced object-oriented developer. (Just like patterns, each refactoring tip is presented with a simple name, a "motivation," and examples using Java and UML.)

Early chapters stress the importance of testing in successful refactoring. (When you improve code, you have to test to verify that it still works.) After the discussion on how to detect the "smells" of bad code, readers get to the heart of the book, its catalogue of more than 70 "refactorings"--tips for better and simpler class design. Each tip is illustrated with "before" and "after" code, along with an explanation. Later chapters provide a quick look at refactoring research.

Like software patterns, refactoring may be an idea whose time has come. This groundbreaking title will surely help bring refactoring to the programming mainstream. With its clear advice on a hot new topic, Refactoring is sure to be essential reading for anyone who writes or maintains object- oriented software. --Richard Dragan

Topics Covered: Refactoring, improving software code, redesign, design tips, patterns, unit testing, refactoring research and tools.

From the Back Cover

As the application of object technology--particularly the Java programming language--has become commonplace, a new problem has emerged to confront the software development community. Significant numbers of poorly designed programs have been created by less-experienced developers, resulting in applications that are inefficient and hard to maintain and extend. Increasingly, software system professionals are discovering just how difficult it is to work with these inherited, "non-optimal" applications. For several years, expert-level object programmers have employed a growing collection of techniques to improve the structural integrity and performance of such existing software programs. Referred to as "refactoring," these practices have remained in the domain of experts because no attempt has been made to transcribe the lore into a form that all developers could use. . .until now. In Refactoring: Improving the Design of Existing Code, renowned object technology mentor Martin Fowler breaks new ground, demystifying these master practices and demonstrating how software practitioners can realize the significant benefits of this new process.

 

With proper training a skilled system designer can take a bad design and rework it into well-designed, robust code. In this book, Martin Fowler shows you where opportunities for refactoring typically can be found, and how to go about reworking a bad design into a good one. Each refactoring step is simple--seemingly too simple to be worth doing. Refactoring may involve moving a field from one class to another, or pulling some code out of a method to turn it into its own method, or even pushing some code up or down a hierarchy. While these individual steps may seem elementary, the cumulative effect of such small changes can radically improve the design. Refactoring is a proven way to prevent software decay.

 

In addition to discussing the various techniques of refactoring, the author provides a detailed catalog of more than seventy proven refactorings with helpful pointers that teach you when to apply them; step-by-step instructions for applying each refactoring; and an example illustrating how the refactoring works. The illustrative examples are written in Java, but the ideas are applicable to any object-oriented programming language.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

Most Helpful Customer Reviews
33 of 35 people found the following review helpful
5.0 out of 5 stars Stop those annoying grubby code build-ups 15 Aug 2002
Format:Hardcover|Amazon Verified Purchase
I'm probably not alone in finding that, upon opening up source code (even my own), I have an uncontrollable urge to remove duplication, simplify, reduce and generally "improve" things before I can start to see how changes can be made. Then I read this book and discovered that I was refactoring.
Even better, I started to understand that there were a set of well-designed methods to apply, some of which I'd informally discovered for myself (so I wasn't alone after all) and many more that I hadn't thought of. It doesn't hurt that the book is well, and often entertainingly written.
Although some of the content is explicitly targeted at code built in full-blown object-oriented languages (the language used throughout is Java), it doesn't prove to be a hindrance to VB programmers like myself.
This book may fall slightly behind "Code Complete" in my list. Which would only make it the second best development book I've ever read (but it's the first one I felt like posting a review on).
Comment | 
Was this review helpful to you?
7 of 7 people found the following review helpful
5.0 out of 5 stars This book is improving the standard of coding 12 Oct 2001
By A Customer
Format:Hardcover
Like the GoF book, this book makes new ground by describing each refactoring in baby-step format and *naming* each of the refactorings. It has also led to more refactoring tools (which I hope will become a mandatory IDE requirement). So, instead of having to refactor your code manually, you can simply goto the menu and select "Extract Method", "Replace Temp with Query" etc. I highly recommend people check out the new IntelliJ IDEA (called Pandora). As Kent Beck notes, a refactoring tool completely changes the way you think about coding.

10 thumbs up for this book and the effect it will have on the industry.

Steve

Comment | 
Was this review helpful to you?
20 of 22 people found the following review helpful
Format:Hardcover
This book is simply great !! It's definately the most useful book I've read since "Design Patterns".

It has an easily read and also sometimes quite amusing text, UML diagrams when necessary, and of course, VERY GOOD CONTENT !!! In short Refactoring is about turning badly designed and written code into well designed and written code, without breaking the program. If you liked read "Design Patterns" (Gamma et al.) you love this one as well. It's structured in much the same way.

The content covers

* WHY + WHEN to refactor
* HOW + WHAT to refactor
* A very good chapter on unit testing with JUnit (Open Source, by Eric Gamma (Design Patterns) and Kent Beck (Extreme Programming) )
* A thorough catalogue of different refactorings you can do to improve the design and readability of your code.
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
4.0 out of 5 stars Book5, Kindle 3. Kindle layout is poor, text too big
The book is a classic: essential reading for any software developer. Unfortunately, the Kindle edition devalues it slightly:
- text cannot be reduced in size enough. Read more
Published 10 days ago by ratuk
5.0 out of 5 stars Excelent and Informative
This is an excellent source of information and written in such a way that it is easily reference able without being programming language specific.
Published 27 days ago by DarkGeek
5.0 out of 5 stars Its a classic
If you have any experience with programming this book may not be a big revolution. However, iterating over the step-wise approach to changing code is educating and having the... Read more
Published 1 month ago by Olav Cleemann
5.0 out of 5 stars excellent
Excellent price and service, arrived promptly i was very pleased with the whole experience would purchase from this company again
Published 3 months ago by Brian Doody
4.0 out of 5 stars The re-writing of code
Have used the guidance offered by Martin Fowler to improve code I've written previously.
It's a very thorough insight but isn't high brow. Read more
Published 5 months ago by Charles
5.0 out of 5 stars The bible of TDD
Great book about TDD and refactoring.
It gives you the reason (code smell) to refactor and techniques to perform a change (recipes).
Published 5 months ago by A. Cuesta Rodriguez
5.0 out of 5 stars Extreme important book for every programmer!
This book should be on every programmer bookshell. In a nice way explains how to go on with refactoring and why is it so important.
Published on 12 Nov 2010 by boki99
5.0 out of 5 stars Lectura obligatoria
Libro para novatos y expertos. Guía de referencia para refactorizar aplicaciones, esto es, reescribir el código para hacerlo más legible y mantenible sin... Read more
Published on 3 Sep 2010 by Justo M. Aguilar Campos
5.0 out of 5 stars The best one in Refactoring
I read this book in one day and recovered 360 of developement. I really appreciate this old book. It don't needs update, is already perfect. I really advice this book
Published on 28 Mar 2010 by Riccardo Solimena
5.0 out of 5 stars Who cares if you "knew this already" ?!!
Great ideas in software are often met with the "if you've been around as long as me, then you know this stuff already" line. WHO CARES?!! Read more
Published on 8 Dec 2009 by KH
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!


Look for similar items by category


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges