Portfolio and Technology Blog
by Kevin Boyd

Upgrading to Silex 2

Version 2 of the Silex PHP Microframework has been out for a while, but many sites are still using Silex version 1. Perhaps this is because of Silex 2's backwards-compatibility breaks.

The Changelog file on the Silex website helpfully touches on these changes, but it can be tough to understand how to translate the entries into meaningful code. I've found the documentation on the Silex 2 website to be spot-on, but it's not always clear when the examples are different from Silex 1 code. To that end, I've started writing a wiki page on the Silex project that should help clarify things. A portion of it is presented here (based on a blog post I started writing over a year ago and forgot to finish. Oops!).

Read more of this post »

January 30, 2017

Tags: coding, development, dev, legacy, php, maintenance, silex, howto, pimple

Working With Legacy Code

It's a fact of life that every software developer spends a large chunk of their career working within the confines of a so-called "Legacy" codebase. A lot of the time, the codebase isn't as bad as the Legacy label suggests. Developers often throw the term around any time we encounter something that's not "fun" or "modern".

But, even on the legacy-est of legacy codebases, there are things you can do to feel good about your work.

Read more of this post »

December 5, 2016

Tags: coding, dev, development, legacy, maintenance, php

Sometimes, Dependencies Suck.

As a modern PHP developer, I'm quite enamoured with Composer and Packagist, and the practice of using prepackaged libraries (otherwise known as external dependencies) to get stuff done faster. This also helps on my hobby projects, where I'm basically on my own and need all the workload optimizations I can find.

However, using dependencies can burn you.

There are many ways this can happen, so let's explore a few and then look at some potential solutions to prevent dependency disasters.

Read more of this post »

August 22, 2016

Tags: coding, composer, dev, development, opinion