O'Reilly logo

Pro PHP Refactoring by Jacopo Romei, Francesco Trucchia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  3

image

Introduction to Refactoring

Due to the strong practical nature of refactoring and the essentially empirical nature of human knowledge, we want to provide you with an example of what all this refactoring is about. Refactoring is a practice addressed to some of the main object-oriented development principles, so we think it best for the reader is to see a real example before diving deep into the refactoring techniques list.

In this chapter we'll try to give you an idea of what refactoring is and what could it mean to developers like us.

The Concept: What Refactoring Is

Everyone can understand the following expression:

(a + b)(a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required