About this entry
You’re currently reading “Nursery Rhyme Code Poem [PHP],” an entry on Web 3.0, 6 Bladed Razors, 7 Minute Abs
- Published:
- 10.26.07 / 7pm
Bookmark with- del.icio.us
Add to- Digg
Post on
Search on - Technorati
Nursery Rhyme Code Poem [PHP]
class I {
public __construct()
{
$star = new Star();
$star->size = 'little';
$star->twinkle();
$star->twinkle();
self::wonder($star, 'What are you?');
$world = new World();
$world->elevation = 'So High';
$star->setAbove($world);
$d = new Diamond();
$d->position = 'In the sky';
$star->setLike($d);
$star->twinkle();
$star->twinkle();
$star->size; // returns 'little'
self::wonder($star, 'What are you?');
}
public static function wonder($obj, $query)
{
$obj->query($query);
}
}
The above code poem is released under the BSD license. To use in production environment without error, please precede with the following command: error_reporting(0); Obviously I'm kidding, don't use this code. Not even for enterprise software.
Technorati Tags: PHP, poem, code poem
subscribe to my blog. You'll save me some bandwidth that way.


No comments
Jump to comment form | comments rss [?] | trackback uri [?]