Regaining trust in your test suite with Docker.

Regaining trust in your test suite with Docker.

3 min read

Docker, and containerised services in general, have brought a lot to the world of software development. While not everybody is (or ever should be) using docker as their deployment method, it's usefulness far exceeds being just a platform to run services on in production. -------------------------------------------------------------------------------- Testing PHP integrations. For Flysystem [https://flysystem.thephpleague.com], an open source PHP package to...

Battle Log: Symfony Routing performance considerations.

Battle Log: Symfony Routing performance considerations.

7 min read

Last week I took a deep dive into Symfony's Routing Component [http://symfony.com/doc/current/components/routing.html]. A project I worked on suffered from a huge performance penalty caused by a routing mistake. This lead me on the path to discovering some interesting performance considerations. Some common practices align nicely with Symfony's optimisations, let's look into those. --------------------------------------------------------------------------------...

Finally, file streams, and deferred execution in PHP.

Finally, file streams, and deferred execution in PHP.

4 min read

Cleaning up after yourself can be a tedious task. For example, closing file handlers after using them needs to be done. A programmer's life isn't all about the happy path. When things go pear-shaped you might end up duplicating cleanup code throughout your code. This is horrible, let's explore an alternative. -------------------------------------------------------------------------------- A typical scenario which requires cleanup is the...