<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Web 3.0, 6 Bladed Razors, 7 Minute Abs &#187; Artistic</title>
	<atom:link href="http://www.zachleat.com/web/category/artistic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zachleat.com/web</link>
	<description></description>
	<pubDate>Thu, 21 Aug 2008 06:02:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Nursery Rhyme Code Poem [CSS]</title>
		<link>http://www.zachleat.com/web/2007/10/27/nursery-rhyme-code-poem-css/</link>
		<comments>http://www.zachleat.com/web/2007/10/27/nursery-rhyme-code-poem-css/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 14:04:41 +0000</pubDate>
		<dc:creator>Zach Leatherman</dc:creator>
		
		<category><![CDATA[Artistic]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Code Poem]]></category>

		<category><![CDATA[Nursery Rhymes]]></category>

		<guid isPermaLink="false">http://www.zachleat.com/web/2007/10/27/nursery-rhyme-code-poem-css/</guid>
		<description><![CDATA[Code Poems are fun!  The trick is to take a nursery rhyme (but really, it could be any commonplace work of writing - Famous Speeches, Bible Verses, Famous Quotes, etc.), and then turn it into pseudocode.  The code must follow both the programming or markup language you're using and the rhyme as closely [...]]]></description>
			<content:encoded><![CDATA[<p>Code Poems are fun!  The trick is to take a <a href="http://en.wikipedia.org/wiki/List_of_nursery_rhymes_in_English">nursery rhyme</a> (but really, it could be any commonplace work of writing - Famous Speeches, Bible Verses, Famous Quotes, etc.), and then turn it into pseudocode.  The code must follow both the programming or markup language you're using and the rhyme as closely as possible.  See how precise you can make your rhyme fit.  I accept critiques and suggestions for improving me rhyme code (or you could just rewrite my rhyme as you see fit).</p>
<div class="syntax_hilite">
<div id="css-2">
<div class="css"><span style="color: #cc00cc;">#theChurch <span style="color: #66cc66;">&#123;</span></span><span style="color: #66cc66;">&#125;</span><br />
#theChurch <span style="color: #cc00cc;">#theSteeple <span style="color: #66cc66;">&#123;</span></span><span style="color: #66cc66;">&#125;</span><br />
#theChurch .door<span style="color: #66cc66;">&#91;</span>state=<span style="color: #ff0000;">"open"</span><span style="color: #66cc66;">&#93;</span> <span style="color: #6666ff;">.people </span><span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">visibility</span>: <span style="color: #993333;">visible</span>; <span style="color: #66cc66;">&#125;</span><br />
#theChurch <span style="color: #cc00cc;">#theParson <span style="color: #66cc66;">&#123;</span></span> <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">none</span>; <span style="color: #66cc66;">&#125;</span><br />
#theChurch&gt; <span style="color: #6666ff;">.upstairs </span>#theParson<span style="color: #3333ff;">:active </span><span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>; <span style="color: #66cc66;">&#125;</span><br />
#theChurch #theParson:lang<span style="color: #66cc66;">&#40;</span>prayers<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>; <span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p></p>
<p><em>The above code poem is released under the BSD license.</em> To use in production environment without error, do not include an element with an id attribute of "theChurch". Obviously I'm kidding, don't use this code. Not even for enterprise software.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/CSS" rel="tag">CSS</a>, <a href="http://technorati.com/tag/poem" rel="tag"> poem</a>, <a href="http://technorati.com/tag/code+poem" rel="tag"> code poem</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zachleat.com/web/2007/10/27/nursery-rhyme-code-poem-css/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nursery Rhyme Code Poem [JavaScript]</title>
		<link>http://www.zachleat.com/web/2007/10/26/nursery-rhyme-code-poem-js/</link>
		<comments>http://www.zachleat.com/web/2007/10/26/nursery-rhyme-code-poem-js/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 02:48:40 +0000</pubDate>
		<dc:creator>Zach Leatherman</dc:creator>
		
		<category><![CDATA[Artistic]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Code Poem]]></category>

		<category><![CDATA[Nursery Rhymes]]></category>

		<guid isPermaLink="false">http://www.zachleat.com/web/2007/10/26/nursery-rhyme-code-poem-js/</guid>
		<description><![CDATA[

&#40;function&#40;&#41;
&#123;
&#160; &#160; function BlindMouse&#40;&#41; &#123;&#125;
&#160; &#160; BlindMouse.prototype.tail = true;
&#160; &#160; BlindMouse.prototype.run = function&#40;after&#41; &#123;&#125;;
&#160; &#160; function Mice&#40;mouse1, mouse2, mouse3&#41;
&#160; &#160; &#123;
&#160; &#160; &#160; &#160; this.mice = &#91;&#93;;
&#160; &#160; &#160; &#160; this.mice.push&#40;mouse1, mouse2, mouse3&#41;;
&#160; &#160; &#160; &#160; this.declare = function&#40;&#41;
&#160; &#160; &#160; &#160; &#123;
&#160; &#160; &#160; &#160; &#160; &#160; return this.mice.length + ' Blind Mice';
&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<div class="syntax_hilite">
<div id="javascript-4">
<div class="javascript"><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> BlindMouse<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; BlindMouse.<span style="color: #006600;">prototype</span>.<span style="color: #006600;">tail</span> = <span style="color: #003366; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; BlindMouse.<span style="color: #006600;">prototype</span>.<span style="color: #006600;">run</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>after<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> Mice<span style="color: #66cc66;">&#40;</span>mouse1, mouse2, mouse3<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">mice</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">mice</span>.<span style="color: #006600;">push</span><span style="color: #66cc66;">&#40;</span>mouse1, mouse2, mouse3<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">declare</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">mice</span>.<span style="color: #006600;">length</span> + <span style="color: #3366CC;">' Blind Mice'</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">run</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>after<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> j=<span style="color: #CC0000;">0</span>,k=<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">mice</span>.<span style="color: #006600;">length</span>;j&lt;k ;j++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">mice</span><span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">run</span><span style="color: #66cc66;">&#40;</span>after<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cutOff</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>prop, weapon<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> j=<span style="color: #CC0000;">0</span>,k=<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">mice</span>.<span style="color: #006600;">length</span>;j&lt;k;j++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">mice</span><span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span>prop<span style="color: #66cc66;">&#93;</span> = <span style="color: #003366; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> mice = <span style="color: #003366; font-weight: bold;">new</span> Mice<span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> BlindMouse<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #003366; font-weight: bold;">new</span> BlindMouse<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #003366; font-weight: bold;">new</span> BlindMouse<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>mice.<span style="color: #006600;">declare</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>mice.<span style="color: #006600;">declare</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> seeHow<span style="color: #66cc66;">&#40;</span>they, func<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; they<span style="color: #66cc66;">&#91;</span>func<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; seeHow<span style="color: #66cc66;">&#40;</span>mice, <span style="color: #3366CC;">'run'</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; seeHow<span style="color: #66cc66;">&#40;</span>mice, <span style="color: #3366CC;">'run'</span><span style="color: #66cc66;">&#41;</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> farmersWife = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> weapon = <span style="color: #3366CC;">'Carving Knife'</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cutOff: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>creatures, prop<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; creatures.<span style="color: #006600;">cutOff</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'tail'</span>, weapon<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</p>
<p>&nbsp; &nbsp; mice.<span style="color: #006600;">run</span><span style="color: #66cc66;">&#40;</span>farmersWife<span style="color: #66cc66;">&#41;</span>;</p>
<p>&nbsp; &nbsp; farmersWife.<span style="color: #006600;">cutOff</span><span style="color: #66cc66;">&#40;</span>mice, <span style="color: #3366CC;">'tail'</span><span style="color: #66cc66;">&#41;</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> haveYouSeen<span style="color: #66cc66;">&#40;</span>obj, timeSpan<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>haveYouSeen<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'Such a Thing'</span>, <span style="color: #3366CC;">'Your Life'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'as '</span> + mice.<span style="color: #006600;">declare</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> + <span style="color: #3366CC;">'?'</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
<p></p>
<p><em>The above <strong>code poem</strong> is released under the BSD license.  To use in production environment without error, please enclose with a try-catch block.  Obviously I'm kidding, don't use this code.  Not even for enterprise software.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/JavaScript" rel="tag">JavaScript</a>, <a href="http://technorati.com/tag/poem" rel="tag"> poem</a>, <a href="http://technorati.com/tag/code+poem" rel="tag"> code poem</a></p></k></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zachleat.com/web/2007/10/26/nursery-rhyme-code-poem-js/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nursery Rhyme Code Poem [PHP]</title>
		<link>http://www.zachleat.com/web/2007/10/26/nursery-rhyme-design-patterns-php/</link>
		<comments>http://www.zachleat.com/web/2007/10/26/nursery-rhyme-design-patterns-php/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 01:54:14 +0000</pubDate>
		<dc:creator>Zach Leatherman</dc:creator>
		
		<category><![CDATA[Artistic]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Code Poem]]></category>

		<category><![CDATA[Nursery Rhymes]]></category>

		<guid isPermaLink="false">http://www.zachleat.com/web/2007/10/26/nursery-rhyme-design-patterns-php/</guid>
		<description><![CDATA[

&#60;?php
class I &#123;
&#160; &#160; public __construct&#40;&#41;
&#160; &#160; &#123;
&#160; &#160; &#160; &#160; $star = new Star&#40;&#41;;
&#160; &#160; &#160; &#160; $star-&#62;size = 'little';
&#160; &#160; &#160; &#160; $star-&#62;twinkle&#40;&#41;;
&#160; &#160; &#160; &#160; $star-&#62;twinkle&#40;&#41;;
&#160; &#160; &#160; &#160; self::wonder&#40;$star, 'What are you?'&#41;;
&#160; &#160; &#160; &#160; $world = new World&#40;&#41;;
&#160; &#160; &#160; &#160; $world-&#62;elevation = 'So High';
&#160; &#160; &#160; &#160; $star-&#62;setAbove&#40;$world&#41;;
&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<div class="syntax_hilite">
<div id="php-6">
<div class="php"><span style="color:#000000; font-weight:bold;">&lt;?php</span><br />
<span style="color:#000000; font-weight:bold;">class</span> I <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; public __construct<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span> = <span style="color:#000000; font-weight:bold;">new</span> Star<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span>-&gt;<span style="color:#006600;">size</span> = <span style="color:#FF0000;">'little'</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span>-&gt;<span style="color:#006600;">twinkle</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span>-&gt;<span style="color:#006600;">twinkle</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; self::<span style="color:#006600;">wonder</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$star</span>, <span style="color:#FF0000;">'What are you?'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$world</span> = <span style="color:#000000; font-weight:bold;">new</span> World<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$world</span>-&gt;<span style="color:#006600;">elevation</span> = <span style="color:#FF0000;">'So High'</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span>-&gt;<span style="color:#006600;">setAbove</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$world</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$d</span> = <span style="color:#000000; font-weight:bold;">new</span> Diamond<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$d</span>-&gt;<span style="color:#006600;">position</span> = <span style="color:#FF0000;">'In the sky'</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span>-&gt;<span style="color:#006600;">setLike</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$d</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span>-&gt;<span style="color:#006600;">twinkle</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span>-&gt;<span style="color:#006600;">twinkle</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$star</span>-&gt;<span style="color:#006600;">size</span>; <span style="color:#FF9933; font-style:italic;">// returns 'little'</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; self::<span style="color:#006600;">wonder</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$star</span>, <span style="color:#FF0000;">'What are you?'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></p>
<p>&nbsp; &nbsp; public <a href="http://www.php.net/static"><span style="color:#000066;">static</span></a> <span style="color:#000000; font-weight:bold;">function</span> wonder<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$obj</span>, <span style="color:#0000FF;">$query</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$obj</span>-&gt;<span style="color:#006600;">query</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$query</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><br />
<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</div>
</div>
<p></p>
<p><em>The above <strong>code poem</strong> is released under the BSD license.</em>  To use in production environment without error, please precede with the following command: <code>error_reporting(0);</code>  Obviously I'm kidding, don't use this code.  Not even for enterprise software.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/PHP" rel="tag">PHP</a>, <a href="http://technorati.com/tag/poem" rel="tag"> poem</a>, <a href="http://technorati.com/tag/code+poem" rel="tag"> code poem</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zachleat.com/web/2007/10/26/nursery-rhyme-design-patterns-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Why Do Fame-Based Bloggers Act Like Children?</title>
		<link>http://www.zachleat.com/web/2007/10/04/why-do-fame-based-bloggers-act-like-children/</link>
		<comments>http://www.zachleat.com/web/2007/10/04/why-do-fame-based-bloggers-act-like-children/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 04:42:01 +0000</pubDate>
		<dc:creator>Zach Leatherman</dc:creator>
		
		<category><![CDATA[Artistic]]></category>

		<category><![CDATA[Reviews]]></category>

		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Comic]]></category>

		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.zachleat.com/web/2007/10/04/why-do-fame-based-bloggers-act-like-children/</guid>
		<description><![CDATA[Normally this blog is about JavaScript and front-end engineering, but today I'm going to play my once per six month rant-card and go on for a bit, so please bear with me.  You can read my last rant-card here.
Ever open up your RSS reader only to be greeted with a collection of posts that [...]]]></description>
			<content:encoded><![CDATA[<p><em>Normally this blog is about JavaScript and front-end engineering, but today I'm going to play my once per six month rant-card and go on for a bit, so please bear with me.  You can read <a href="http://www.zachleat.com/web/2007/04/23/twitter-is-polluting-the-search-space/">my last rant-card here</a>.</em></p>
<p>Ever open up your RSS reader only to be greeted with a collection of posts that feels like an episode of prepubescent Survivor (Sorry to international readers, that is an American TV reference).  Whining, name calling, immaturity are all the rage nowadays, especially from so-called "professional" bloggers that seem more interested in their analytics package than providing decent content.  Here's a few rules that I use for pruning my subscriptions that others might find useful:</p>
<ol>
<li>If you're blog is named after yourself, that's one strike.  Having a domain name named after yourself is fine (exempt myself?), but a blog should be about a subject, and unless you're posting about your dating life and the consistency of your cat's shit in the litter box (which may or may not overlap each other), your blog title should suggest a subject as well.</li>
<li>If you've posted about a meaningless internet pissing match (a trivial contest in which a group of people stand in a line and see who's urine can travel the most in-air distance), that's big strike number two.  You're polluting my subset of the internet.  You know what I'm talking about because we've all read those train wrecks.</li>
<li>If you're constantly plugging something that is <strong>not</strong> interesting, say goodbye.  I don't mind it if you're talking about something that actually has value.  I love reading <a href="http://www.burningdoor.com/askthewizard/">Ask the Wizard</a>, because he's actually writing about something useful, not just plugging FeedBurner (not that he'd need to).</li>
</ol>
<p><img src='http://www.zachleat.com/web/wp-content/uploads/2007/10/promqueens.png' alt='Blogging Prom Queens' /></p>
<p>Now take a moment to consider which blogs in your feed reader might match these criteria.  Then indulge yourself and consider what actual value these blogs provide.  If you like the entertainment of a good cat fight, by all means, keep reading.  But if you're like me and find yourself with the conclusion that these blogs don't provide a <strong>wrinkle</strong> to the gray matter between your ears, I would encourage you to go into your feed reader and unsubscribe.  The best thing you can do with a troll is to ignore them completely.</p>
<p>What blogs do you stay away from?  (Titles only please, no links)</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/bloggers" rel="tag">bloggers</a>, <a href="http://technorati.com/tag/blogging" rel="tag"> blogging</a>, <a href="http://technorati.com/tag/rss" rel="tag"> rss</a>, <a href="http://technorati.com/tag/techmeme" rel="tag"> techmeme</a>, <a href="http://technorati.com/tag/techmeme-leaderboard" rel="tag"> techmeme-leaderboard</a>, <a href="http://technorati.com/tag/web-3.0" rel="tag"> web-3.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zachleat.com/web/2007/10/04/why-do-fame-based-bloggers-act-like-children/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
