The other day I posted an article about
upgrading Chef and Vagrant, and the pains you can end up having by relying on third-party vagrant boxes instead of building your own with VeeWee.
Getting started was initially confusing to me, as I knew VeeWee was a gem, so I just tried installing it directly into my application gemset. The trouble here is that VeeWee depends on the Vagrant gem version v1.0.x and Vagrant is now not only on 1.2.2 but not actually a gem anymore.
Read More »
While Composer has been around for a while now, many packages are still in their infancy (< 1.0) or sometimes are just not as feature filled as they could be. Pull requests are going to be a common thing for the PHP community to be doing to these packages and this needs to be done safely, with unit-testing. So, how do you run their test suite and add your own tests?
Read More »
The other day I thought to myself, I really should be using a RVM gemset for my "devops" repo, which contains all my Vagrant and Chef logic (along with submodules for everything else). This broke everything, but I got there in the end.
Read More »
Kapture is a Brooklyn-based company I've been working for this last year as Lead Engineer. We make an iPhone app which essentially rewards users for sharing a photograph of a specific opportunity with their friends on Facebook, Twitter or (coming soon) Foursquare. This at its most basic level means if I share a photograph of my food when I go to one of our partner restaurants, I could get a glass of wine, or a desert, or whatever that partner is doing, for free. Beyond that we have all sorts of people on board, from shoe shops to hotels, and plenty more verticals are covered too.
Read More »
One of the fun things about trying to support the PHP-FIG and all the good its doing, is seeing blog posts written complaining about it by people that just don't know what they're talking about. By getting involved in conversations on Reddit, building FAQs and generally trying to build new useful information this can generally be helped. Sadly some
blog posts are sent out by people with a whole bunch of odd opinions that you just can't do anything about, so instead I'm going to respond with a play-by-play approach.
Read More »
PSR-2 has been out for a while now, and even though developers from member projects (such as Joomla, Drupal, phpBB, CakePHP, Symfony and Zend) got together and took part in a entirely fair vote to decide if tabs or spaces should be involved, it soon became apparent that the group had made a mistake. Due to an overwhelming surge of complaints about the use of spaces for indentation instead of tabs in PSR-2, the PHP-FIG has had no choice but to reverse this decision.
Read More »
Which version of PHP to use for anything is always much debated in the PHP community. I'm luck enough to have kissed sweet goodbye to PHP 5.2 a while back, but PHP 5.4 and PHP 5.3 are both actively used by different projects and recently I have come across a few packages that have been using PHP 5.4 almost exclusively just to use short aray syntax, which to me is short sighted and selfish. I tried tweeting about this and everyone seemeed to be a little confused, so instead of 140 characters I thought I'd try 7051.
Read More »
Yesterday PHP.net announced the release of PHP 5.5 Beta-1. This is a great news after the concerns that merging Zend Optimizer would really slow things down, but the releases are still ticking along. So, what can you do to help out? Test it, without doing any work.
Read More »
It's been a little while in the making, but my first book is out: Catapult into PyroCMS. This is being released as an eBook only at this point, but who knows what the future might hold.
Read More »
This article is completely pointless, im just saying what everyone is thinking - just so we have a record of it. PHP is well known for having an inconsistent API when it comes to PHP functions. Anyone with an anti-PHP point of view will use this as one of their top 3 arguments for why PHP sucks, while most PHP developers will point out that they don't really care. This is mostly because we're either used to it, have a god-like photographic memory or our IDE handles auto-complete so it's a moot point. For me I'm not too fussed because I spend more time trying Googling words like recepie (see, I got that wrong) recipe than I ever spend looking up PHP functions. This is how we could fix the situation - but we never will.
Read More »