John 3:16 in PHP $son = $god->loved($the_world); foreach($whosoever as $person) { if($person->believe($son)) { $son->everlasting_life($person); } } John 3:16 in Ruby son = god.loved(the_world) whosoever.each do |person| son.everlasting_life!(person) if person.believe?(son) end
PHP Documentation Help In Vim
Supposing you are whipping up some PHP code in Vim and want to quickly check the PHP documentation for the function you just typed. I wrote a quick little script to do just that. It uses the _open_ command is OSX to launch your default web browser to the page in the online PHP documentation […]
How To Remove Empty Array Elements In PHP

Quick PHP tip: It is common to want to explode a string based on some delimiting character, then iterate over the array. Most of the time you don’t care about the empty items in the array. Suppose, for example, you have a dynamically constructed string of id numbers from a database or something and you […]
What’s The Best PHP Framework?

There is an enormous number of PHP frameworks available so I thought I share my experiences working with some of the most popular frameworks for PHP development. I have personally used all of the frameworks I describe either for my own projects or for actual client work. Here are my notes on how I evaluated […]
Sync Local And Remote Databases For Web Development

I develop WordPress sites, themes, and plugins all the time and have been working on improving my workflow. I have configured our server using git (gitosis) for easy deployment of WordPress (and related files) which I’ll write about in a later post. This post is to share a little script I use for copying my […]


