Zach’s ugly mug (his face) Zach Leatherman

Nursery Rhyme Code Poem [PHP]

October 26, 2007
class I {
    public __construct()
        $star = new Star();
        $star->size = 'little';

        self::wonder($star, 'What are you?');

        $world = new World();
        $world->elevation = 'So High';

        $d = new Diamond();
        $d->position = 'In the sky';

        $star->size; // returns 'little'

        self::wonder($star, 'What are you?');

    public static function wonder($obj, $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.

< Newer
Nursery Rhyme Code Poem [CSS]
Older >
Nursery Rhyme Code Poem [JavaScript]

Zach Leatherman IndieWeb Avatar for a builder for the web at IndieWeb Avatar for He is the creator and maintainer of IndieWeb Avatar for https://www.11ty.devEleventy (11ty), an award-winning open source site generator. At one point he became entirely too fixated on web fonts. He has given 79 talks in nine different countries at events like Beyond Tellerrand, Smashing Conference, Jamstack Conf, CSSConf, and The White House. Formerly part of Netlify, Filament Group, NEJS CONF, and NebraskaJS. Learn more about Zach »

Shamelessly plug your related post

These are webmentions via the IndieWeb and

Sharing on social media?

This is what will show up when you share this post on Social Media:

How did you do this? I automated my Open Graph images. (Peer behind the curtain at the test page)