PHP love poem

[sourcecode language='PHP']$timeWaiting = 0;
while (!$you->near($me)) {
$me->thinkAbout($you);

switch (true) {
case $timeWaiting < 5:
$me->wait($you);
break;

case $timeWaiting < 10:
$me->worry();
break;

case $timeWaiting < 20:
$me->lookFor($you);
break;

case $timeWaiting < 40:
$me->worry();
$me->lookFor($you);
break;

case $timeWaiting < 80:
$me->worry();
$me->cry();
$me->lookFor($you);
$me->lookFor($you);
$me->lookFor($you);
break;

case $timeWaiting < 160:
$me->worry();
$me->cry();
$me->drink();
$me->lookFor($you);
$me->lookFor($you);
$me->lookFor($you);
$me->thinkAbout($you);
$me->thinkAbout($you);
$me->cry();
$me->lookFor($you);
$me->lookFor($you);
$me->drink();
$me->drink();
break;

default:
throw new CantLiveWithoutYou();
die(“alone”);
}[/sourcecode]

Comments

  1. Pingback: A Love Poem in PHP - Simian Uprising by Jeremy Clarke

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>