Named Parameters in PHP

Posted 2013-09-01
Category PHP
Converting a Python Twitter API package to PHP turned out to be more trouble than I initially expected due to the usage of Python's named parameters. This artice uses the Twitter library as an example for why named parameters are important and useful.

Read More »

Potential Variadic Function Syntax for PHP 5.6

Posted 2013-08-30
Category PHP
An awesome RFC popped up the other day: Syntax for variadic functions, developed by Nikita Popov. I read through it and I loved it, but I did have to Google to see what the hell a variadic function was.

Read More »

CurlFile and the Facebook SDK in PHP 5.5

Posted 2013-08-29
Category PHP
The Facebook PHP SDK is currently broken if you're running PHP 5.5 and are trying to upload files. I've made a little pull request and explained what is happening, primairily as a Google-catcher for anyone else having the same problem.

Read More »

FUD Cracker: PHP 5.5 never lost JSON support

Posted 2013-08-21
Category PHP
I'm posting this because I have accidentally been perpetuating some FUD, that PHP 5.5 has had its JSON support removed. It hasn't. This article is an appology for my involvement in any confusion and an explanation of what actually happened.

Read More »

PHP Static Analysis in Sublime Text

While learning Python I really enjoyed how Sublime Text 2 would shout at me for using too many empty lines, using tabs instead of spaces and even things like declaring unused local variables, importing modules that were never used, etc. This was pretty cool, and I was soon writing beautiful Python code without any concern over which way things should be done, so lets get it working for PHP.

Read More »

Progress in the PHP-FIG

Posted 2013-08-14
Category PHP
The PHP Framework Interoperability Group (PHP-FIG) has been around for 4 years, and it's produced 4 PSR's, which to some is a sign of inevitable doom or something. To those "in the know" the future is looking bright, and I'd like to let you all know what is going on. Using a new workflow, we are starting down a clearly defined path, with obvious steps along the way which not only increase the signal to noise ratio, but help get us more awesome PSRs faster.

Read More »

Great Battle, Wrong Field

Posted 2013-07-25
Life is hard, opinions are hard, and fighting for your opinions and beliefs is the hardest. This is why it upsets me that so many people just get it totally wrong and cause more harm than good. These are the incidents when the wrong person gets fired, conferences get canceled, people get accused of all sorts of things and careers are hurt. 

Read More »

Beware the Route to Evil

Posted 2013-07-23
Category PHP
As a programmer we should all be used to the fact that our personal preferences and habits are all subject to change. I used to be a big fan of Alman and tabs > spaces, now I follow PSR-2 happily which contradicts those two rules and couldn't care less. Another contradiction to my personal preferences has been "automagical routing" verses "verbose routing", and this article explains why I changed my opinon on that.

Read More »

Building a Decent API

Posted 2013-07-12
Category PHP
PHP developers are increasingly moving over to API development, as are a lot of server-side developers. It's a trend thats been happening for the last few years and it's getting to the point where everyone and their dog are putting articles showing off how to build "awesome" API's. Unfortunately most of these are either woefully inadequate or are promoting bad practices. These are some of the golden rules I go by.

Read More »

Geeks Giving for Aids

Posted 2013-07-03
After doing my 100 mile bike ride to raise money for autism research, I've decided to step things up a gear (ha) and go further in a bid to raise more. Next I will be riding the 285 miles from Boston to New York over 3 days, with the goal of raising money for Housing Works, who work with those struggling with HIV/AIDS and homelessness. This work is being done with the hope of one day putting AIDS behind us.

Read More »