Archive for the ‘Debugging & Deployment’ Category

How to Write JavaScript-Style Test Watchers in PHP

Posted on: No Comments
I didn't start out writing tests for my code. Like many before and since, my "testing" was to write code and refresh the page. "Does it look right?", I'd ask myself. If I thought so, I'd move on. In fact, most of the jobs I've had have been with compan...

The Theory of Constraints in PHP

Posted on: No Comments
I had been reading The Phoenix Project, a great novel about IT (you read that right), which presents day to day IT and devops problems at a large Amazon-like company in a way which makes mortals understand the complexities and chaos of 21st century tec...

Poka Yoke – Saving Projects with Hyper-Defensive Programming

Posted on: No Comments
When working in a medium to large team on the same codebase, it can sometimes become hard to understand each other's code and how to use it. Various solutions exist to help with this. For example, you can agree to follow a set of coding standards to ma...

What Is Snapshot Testing, and Is It Viable in PHP?

Posted on: No Comments
Ah-ha moments are beautiful and rare in programming. Every so often, we're fortunate enough to discover some trick or facet of a system that forever changes how we think of it. For me, that's what snapshot testing is. You probably write a lot of PHP c...

Web App Performance Testing with Siege – Plan, Test, Learn

Posted on: No Comments
Building a simple web application today isn’t that hard. The web development community is friendly, and there are lots of discussions on Stack Overflow or similar platforms, and various sites with lessons and tutorials. Almost anyone can build an ap...

The Ultimate Guide to Deploying PHP Apps in the Cloud

TL;DR: There is a popular mantra amongst developers that goes like this write, test and deploy. In this tutorial, I'll show you how to deploy your PHP apps to different cloud server platforms such as Google Cloud, Microsoft Azure, Heroku, IBM Bluemix, ...

What? Why Would Someone Hack My Small Business Website?

You are an entrepreneur, manager or a marketing pro responsible for the website in a company which is simply meant as a digital business card to introduce the company, its services, and the latest news. Not including any state secrets, right.. so why ...

Upgrading Sylius the TDD Way: Exploring Behat

Posted on: No Comments
Last time, we developed some new features on top of Sylius' core to indicate which products and their variants are low on stock and need replenishing. Now, we move on to seeing our changes in the UI, which means we will need to do a bit of StoryBDD tes...