Skip to Content
Refactoring to Patterns
book

Refactoring to Patterns

by Joshua Kerievsky
August 2004
Intermediate to advanced
400 pages
8h 46m
English
Addison-Wesley Professional
Content preview from Refactoring to Patterns

Chapter 2. Refactoring

In this chapter I offer a few thoughts on what refactoring is and what you need to do to be good at it. This chapter is best read in accompaniment with the chapter “Principles in Refactoring” [F].

What Is Refactoring?

A refactoring is a “behavior-preserving transformation” or, as Martin Fowler defines it, “a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing its observable behavior” [F, 53].

The process of refactoring involves the removal of duplication, the simplification of complex logic, and the clarification of unclear code. When you refactor, you relentlessly poke and prod your code to improve its design. Such improvements may involve something ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Refactoring at Scale

Refactoring at Scale

Maude Lemaire
API Design Patterns

API Design Patterns

John J. Geewax
Refactoring: Improving the Design of Existing Code

Refactoring: Improving the Design of Existing Code

Martin Fowler, Kent Beck, John Brant, William Opdyke, Don Roberts

Publisher Resources

ISBN: 0321213351Purchase book