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 ...

Get Pro PHP Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.