Pseudocoded

$brain->viewSource()

Archive for December, 2007


Little Richard

$person = new Person('Richard Penniman');
 
$person->rename('Little Richard');
 
while ( exists( $person ) ) {
 
    $person->scary++
}

THEN
Little Richard in the 1950s

NOW
Little Richard Today

How fast to drive

$speed = $limit;
 
if ( $bank->balance < $citation->fine ) 
    $speed -= 5;
 
if ( $age > 25 && $age < 70 )
    $speed += 10;
 
if ( $car->year > 2007 )
    $speed += 20;
 
if ( see( $cop ) )
    $speed = $limit - 5;

Dealing with abusive clients

Contributed by Douglas Karr

if ( $client->behavior == 'abusive' ) {
 
    if ( $company->profits < 0 ) {
 
        foreach ( $company->employees() as $employee ) {
 
            $employee->frustration++;
        }
    }
    else {
 
        $client->delete();
    }
}

Now taking submissions

$last_post = array_pop( $blog->posts() );
 
if ( time() - $last_post->date > days(120) ) {
 
    $form = new SubmissionForm;
 
    $form->url = 'http://www.pseudocoded.com/submit/';
 
    $form->launch();
 
    while ( ! $form->entries() ) {
 
        foreach ( $blog->readers() as $reader ) {
 
            $blog->author->beg( $reader );
        }
    }
}