Archive for November, 2006

Rant: Client, you’re fired!

November 24th, 2006

Perhaps it was just my mood this week, but I am close to dropping another client. In the past year, I’ve developed an online resource management and monitoring system for this company. For a mission critical online app, this has got to be one of the cheapest I’ve charged out.

Anyway, my old contact must have been removed. It had been months since I’ve heard anything from them and well, I was too busy to do the old marketing call and there were very rarely calls for technical support on the app – such is the benefit of creating unit tested applications that do as they should.

» Read more: Rant: Client, you’re fired!

Ternary Expression in PHP

November 20th, 2006

After posting on Sitepoint PHP Community Forums again after a long while, I’ve come across some posts which ask what the php code snippet means:

$id = isset($_GET['id']) ? $_GET['id'] : false;

This php code block is called a Ternary Expression. It’s a shortcut for:

if ($_GET['id']) {
$id = $_GET['id'];
} else {
$id = false;
}

» Read more: Ternary Expression in PHP