Pro PHP Refactoring with Test Driven Design
- Length: 350 pages
- Edition: 1
- Language: English
- Publisher: Apress
- Publication Date: 2010-02-01
- ISBN-10: 1430227273
- ISBN-13: 9781430227274
- Sales Rank: #2154436 (See Top 100 Books)
Pro PHP: Refactoring with Test Driven Design is the first book dedicated to showing how TDD and refactoring can be applied specifically to PHP code. There are a great many sites written in PHP, but that code is often hammered together hastily, leading to problems with usability, scaling, etc. This book shows developers how to identify the reasons for these problems and apply TDD principles to fix them quickly and efficiently.
Table of Contents
Chapter 1. Introduction
Chapter 2. Finding “Bad Smells” in Code
Chapter 3. Introduction to Refactoring
Chapter 4. Principles and Rules
Chapter 5. Test-First Development
Chapter 6. Refactoring Tools
Chapter 7. Structuring Behavior
Chapter 8. Changing Class Responsibilities
Chapter 9. Dealing with Data Rationalization
Chapter 10. Reducing to Essential Conditional Executions
Chapter 11. Simplifying Method Calls
Chapter 12. Simplifying Generalization Relationships
Chapter 13. Legacy Code
Chapter 14. Regression Tests
Chapter 15. Refactoring with Patterns