
Pro PHP Refactoring
by Francesco Trucchia, Jacopo Romei
360 pages· 2010· ISBN 9781430227274
About
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
Discuss Pro PHP Refactoring with other readers
Join or start a book club for Pro PHP Refactoring on Readfeed. Live chat, shared reading progress, and AI discussion questions — free to get started.
Frequently asked questions
How do I join a book club for Pro PHP Refactoring?
Sign up free on Readfeed, then browse public clubs or start your own club with Pro PHP Refactoring as the current read. Invite friends with a share link and discuss together with live chat and AI discussion questions.
Can I discuss Pro PHP Refactoring with other readers online?
Yes. Readfeed book clubs let you chat live, share progress, and join discussions about Pro PHP Refactoring with readers worldwide — whether your club is virtual, in-person, or hybrid.
Is Readfeed free?
Yes. Creating an account and joining book clubs is free. Sign up to find readers who love the same books and start discussing today.