Advice From a Grumpy Programmer - The Grumpy Programmer's Guide To Building Testable PHP Applications (2015)

The Grumpy Programmer's Guide To Building Testable PHP Applications (2015)

14. Advice From a Grumpy Programmer

I know there is a lot of stuff in this guide for you to consider. Writing tests is easy but creating a suite of tests that really helps protect you from regressions and other problems is hard.

The scope of knowledge required to do this is vast. This guide is really just scratching the surface of the topic of testing, automation, continuous integration and deployment. There are numerous ways for you to get there so don’t get discouraged that you have so many options.

Start slow and build out the pieces you really need first. The fancy stuff that companies like IMVU and Etsy use didn’t get built overnight. It took years to get there, and they made lots of mistakes along the way to find the right set of tools and practices that worked for them.

Take the time and find the right set of tools for what you need. To reach the nerdvanna of continuous deployment, all you need is this:

· a testing suite with enough coverage to catch regressions

· ability to automatically run tests

· ability to do automated deployments to a specified target

That’s really it. Your journey towards this starts with the decision to write one test using one set of tools, and it never really ends. You will find that when you make the commitment to a “test-first” mentality that your code ends up being more modular and simpler than before. That’s all you can really ask for.