Pseudocoded

$brain->viewSource()

Archive for May, 2007


How much beer to drink

switch ( $beer->type() ) {
 
    case 'Coors Light':
       drink(0);
       break;
 
     case 'Guinness':
       drink(max());
       break;
 
    default:
       drink(rand());
}

Choosing a domain name

$i = 0;
 
do {
    $name = new DomainName;
    $i++;
}
while ( $name->isTaken() );
 
$name->setLameness($i);