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  4

image

Principles and Rules

Refactoring software is a practice adopted during recent years within agile software development processes. Like all agile practices, refactoring is based on clear principles and rules that must be observed to improve the software production process.

In this chapter we'll see the main principles and rules about software refactoring. We'll see why and when we should do refactoring and also why sometimes we shouldn't do it.

Why Should You Do Refactoring?

There are four important reasons for introducing the refactoring practice in your production process:

  • Refactoring improves the design of our software.
  • Refactoring ...

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