Jump to ratings and reviews
Rate this book

Pro PHP Refactoring

Rate this book
Many businesses and organizations depend on older high-value PHP software that risks abandonment because it is impossible to maintain. The reasons for this may be that the software is not well designed; there is only one developer (the one who created the system) who can develop it because he didn't use common design patterns and documentation; or the code is procedural, not object-oriented. With this book, you'll learn to identify problem code and refactor it to create more effective applications using test-driven design. What you'll learn What refactoring is and why you need to refactor code What test-driven design is and why you need to test your code How to write unit and functional tests with PHPUnit and Selenium Remote Control (RC) How to detect bad smells in PHP code, and refactor them using test-driven design How to refactor a large procedural application affected by many bad smells Who this book is for

This book is for PHP developers, businesses, and developers relying on legacy PHP apps. Table of Contents Introduction Finding Bad Smells in Code Introduction to Refactoring Principles and Rules Test-First Development Refactoring Tools Structuring Behavior Changing Class Responsibilities Dealing with Data Rationalization Reducing to Essential Conditional Executions Simplifying Method Calls Simplifying Generalization Relationships Legacy Code Regression Tests Refactoring with Patterns

360 pages, Paperback

First published January 1, 2010

29 people want to read

About the author

Francesco Trucchia

3 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (20%)
4 stars
13 (52%)
3 stars
6 (24%)
2 stars
1 (4%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
Profile Image for Yen Lian.
96 reviews13 followers
July 11, 2020
At first I wanted to read Martin Fowler's Refactoring but the examples in the book were in Java which I'm not familiar with. Thus I try searching for a book written in a language that I use daily and at last I found this book.

So glad I discovered this because I'm very much enlightened after reading this book!
19 reviews2 followers
October 22, 2020
This book describes many refactoring techniques from Refactoring: Improving the Design of Existing Code (2nd Edition). The second edition has examples wrote in JavaScript. The "Refactoring: Improving the Design of Existing Code" describes also code smells.
Profile Image for Eduardo.
25 reviews6 followers
January 25, 2013
A good read for newcomers to middle-level programmers. But if you are an expert it may be useful more as a remember.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.