O'Reilly logo

Pro PHP Programming by Mladen Gogala, Peter MacIntyre, Brian Danchilla

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  13

Refactoring, Unit Testing, and Continuous Integration

As developers, we aim to achieve a stable, high-quality code base. This reduces time spent on debugging and facilitates frequent releases. In this chapter, we will look at three techniques to improve the reliability of our code and make it easier and safer to modify. These techniques are refactoring, unit testing, and continuous integration.

Refactoring is a way to modify code structure with the purpose of improving its quality. When we refactor, we are not trying to add or modify functionality. Refactoring is a necessary and natural part of programming. Despite our best intentions to not modify functionality when refactoring, it is important to realize that it is quite ...

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