Author(s): B. Savage
Publisher: php Architect.
Year: 2011
Language: English
Pages: 151
Tags: Библиотека;Компьютерная литература;PHP;
Acknowledgments......Page 10
Introduction......Page 12
Introduction to Debugging......Page 16
Installing Xdebug......Page 17
Xdebug Configuration Options......Page 18
Using Function Traces......Page 21
Outputting Variables......Page 22
Handling Errors with PHP......Page 25
Finding and Squashing Bugs......Page 26
Test-Driven Development......Page 30
PHPUnit Quick and Dirty......Page 31
How to Test When Time is Not Allotted for It......Page 33
Convincing a Manager that Unit Testing Matters......Page 35
Knowing When Not to Use Unit Testing......Page 39
The One Thing You Must Do Before Optimizing......Page 42
Optimizing Database Queries......Page 44
Function Calls In Loops......Page 47
Spotting Code Inefficiencies......Page 48
Optimizations to Avoid......Page 50
When Not to Optimize......Page 51
Adding Opcode Caching......Page 56
Adding Memcache......Page 57
Adding Web Servers......Page 58
The Benefits of Expanding Hardware......Page 59
The Drawbacks of Expanding Hardware......Page 60
What is Caching?......Page 62
Rules for Caching......Page 63
File-Based Caches......Page 65
Memory-based Caches......Page 68
Memcached......Page 69
Avoiding the Pitfalls of Caching......Page 71
Summary......Page 72
What Is Version Control?......Page 74
Why Does Version Control Matter?......Page 75
Selling A Manager on Version Control......Page 76
Which Version Control Should You Use?......Page 77
Essential Subversion Syntax......Page 79
Essential Git Syntax......Page 83
Rules of Version Control......Page 91
Guerrilla Version Control......Page 95
Introduction to Refactoring......Page 100
Why Refactor?......Page 101
How to Refactor......Page 102
Developing a Coding Standard......Page 105
Refactoring for Testability......Page 113
Refactoring for Abstraction......Page 118
Refactoring for Logic......Page 125
Thinking Security Is for When an Application is Finished......Page 134
Spending Too Much Time Coding, Not Enough Time Designing......Page 136
Catching NIH Syndrome......Page 138
Trying to Micro Optimize......Page 139
Not Developing with a Style Guide......Page 141
The Importance of Quiet......Page 146
Some Specs on Spec Development......Page 147
Effective Issue Tracking......Page 148
Effective Project Management......Page 149
Picking the Right Company to Work For......Page 150
Blank Page......Page 15