Coding


PHP Confessions

What was in my bag by evil erin

Last night on twitter I started this series based on the hashtag #PHPConfessions

I’ve never gotten the order of arguments right for str_replace without checking http://php.net first  #PHPConfessions

I’m always afraid I’ll be seated with the Perl people at programmer gatherings  #PHPConfessions

I like PHP because I like always having the option to blame my tools #PHPConfessions

Sometimes I go to github just to browse python repos #PHPConfessions

Read The Rest Of This Post

How To Do It

Woman programming a huge early computer Perl

There’s more than one way to do it

Python

There is one way to do it

PHP

I found a way to do it but it didn’t work. I’m just going to do it in WordPress

ColdFusion

You can do that?

.NET

There is one way to do it, but you can do it in any language you want

JavaScript

I know how to do it in jQuery. Does it have jQuery?

Clojure

First let’s do math!

Ruby

This is the right way to do it. All the other ways to do it suck.

Objective-C

Just [...]

Read The Rest Of This Post

Dreamhost is incompetent

This site was offline for three days due to the unbelievable incompetence of Dreamhost. There is no excuse for a company in the business of hosting websites to fail so miserably and so often. The reason for the outage is unclear, their infrequent updates would refer to different pieces of failing hardware. The backup server, which is oddly singular in their parlance, failed while restoring to a new server that failed for similar hardware reasons.

I’m off to the cloud!

Update: It [...]

Read The Rest Of This Post

Online Audio Is A Poor Format For Learning Code

Coffee Cup on a table at a conference

Saw a link to a “radio show” about Advanced OO Patterns. I thought that was an odd format for a topic like that. Online audio presentations are great for ideas that live mostly inside your head, but code you usually need to write down. I clicked the link and found a flash-based audio player. No slides or video or text, just the audio. I thought I’d try it out and record my notes….

9:50 pm

Some guy  says [...]

Read The Rest Of This Post

PHP Gravatar Class

Avatar

I was recently working on a small side project when I ran across a need for a php implementation of a class that would produce Gravatar urls.

Generating Gravatar urls is not a complicated affair. In fact, it’s not out of the question to write a one-off gravatar function as needed. I wanted something slightly more robust and reuseable. I was surprised as I surveyed the php gravatar classes in github to find a morass of over engineered solutions that were [...]

Read The Rest Of This Post