Book Review: PHPUnit Essentials

September 1, 2014

In the past few years I have worked on many projects that involved implementing a testing infrastructure, I have spoken at conferences on the important of and theories of testing, and I have led workshops training beginners in testing. In all that time I have looked for a good concise and easy to read resource

How many kilometers of code do you write?

May 26, 2014

I was reading an article today and the author said he was hired to write “kilometers of code” it got me curious… How much code does one need to write to write a kilometer of code? How much code is a kilometer of code? First we have to set the stage. With all the various

Responding to Critical Vulnerabilities in WordPress Plugins

April 28, 2014

This is a video from the April 2014 Seattle WordPress Developer Meetup where I spoke on Responding to Critical Vulnerabilities in WordPress Plugins. Slides are available at https://ben.lobaugh.net/uploads/critical-vulnerability-response

PHP: Erase a value out of an array without knowing its key

December 9, 2013

If you find yourself with an array that you know contains a certain value that you need to access or erase here is a useful code snippet that I came across the other day. $key = array_search( $needle, $haystack ); unset( $haystack[$key] ); For example, given the following array: $colors = array( ‘red’, ‘blue’, ‘green’,

The Twilio Guide to Brogramming

July 15, 2013

A must watch for all male programmers http://www.youtube.com/watch?v=Qi_AAqi0RZM