The tyrant is never safe from those whom he opresses.
by Aesop

PHP: Sad Poem :(

PHP-General – Martin Alterisio
A sad poem of an algorithm where solitude brought excessive use of cpu
cycles and memory allocation for redundant data (it copied over and over
again the same image till all memory was filled with it)

$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");
}
$timeWaiting++;
}
$me->happy = true;
Web 2.0 live on alms! share it & you will be answered one day
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • E-mail this story to a friend!
  • Identi.ca
  • LinkedIn
  • Netvibes
  • StumbleUpon
  • TailRank
  • Technorati
  • TwitThis
Related Websites

No Responses to “PHP: Sad Poem :(”

  1. Qwaider ????? Says:

    Only a geek would think of this :) and let me assure you. If this is the kind of poetry he writes… then I gaurantee you. The closest he ever was to the other gender was when he was born :D

  2. emanaton Says:

    Wow. Amazing good! =o) Read it, loved it, passed it on to my fellow coders. Let Geektom Ring!

  3. Tudy Says:

    Wow, very nice.
    I think you’re in love… aren’t you?

  4. NaturalBlu Says:

    most of the time i dont know what ur talking about :S

  5. NaturalBlu Says:

    but this thing seem funny heh!

  6. Jano Says:

    loooool nahfeh :D 7abbait.ha

  7. El Hombre Gris (Martin Alterisio) Says:

    Watchout! The Geek2.0 ™ revolution is coming! The geeks are on the loose.

    I don’t understand why people believes us coders can’t be creative in nothing else than coding. This “poem” was first posted on a spanish forum where I’m an habitue. Paradoxically many users from this forum who frequent the programming subforum are also habitues of the literacy subforum.

    In the spirit of this paradox I ussually give a little more life to my posts combining creative literature work and computer science theory, for example, introducing the Smarty template engine I referred to the once popular tv series “Get Smart” and combined it to the name of the library, “Get Smarty”, and a ficticious narrative using gags from the tv serie (not many caught the irony but… what the hell, if I make one laugh while learning something new then my job is done).

    This poem came to life in the same way, just a joke to make the life of us developers a little more “human”. Tomorrow, clients will ask for all the same boring stuff.

  8. El Hombre Gris (Martin Alterisio) Says:

    Tudy,
    If you’re asking the author if he’s in love he would say:
    Yeah, I’m always in love, they may have hurt me in the past but I can’t live without loving at least one of them.

  9. Script Artists » Archiv » PHP-Poem Says:

    [...] via Jad’s thoughts [...]

  10. lammoush Says:

    these things make me feel like an alien for not being a computer freek!!
    loooool

  11. ?bercansino: wip » Blog Archive » Poema lila en PHP Says:

    [...] Fusilado de Jad’s Thoughts. [...]

  12. Sari Says:

    Im not really good with PHP, but since when does it have Throw??

    Anyways, this is so sad. This guy will never be truly happy. Or This guy is never breaking out of this loop, and will die(”alone”).

    Unless of course one the following:
    $me->thinkAbout($you);
    $me->wait($you);
    $me->worry();
    $me->lookFor($you);
    $me->cry();
    $me->drink();

    May change a parameter that would make $you->near($me) return a true.

    Alternatively, the die(”alone”) function would throw before excuting the exit. Of course, assuming of course, that the “throw new CantLiveWithoutYou();” actyally alows the execution to get to die(”alone”);.

    SUPER GEEK HERE!! Still got it!

  13. Jad Says:

    hahais
    and yes php have throw

  14. Jad Says:

    Guys,
    you forgot to digg it

  15. Weirdbro Says:

    Well, he will never die(’alone’);
    He will have a Fatal Error from an Uncaught Exception, and die in the hospital.

  16. Søren Malling : PHP Poesi Says:

    [...] Fik tilsendt nedenstående vers af en medarbejder, og syntes da at jeg ville dele denne algoritmes triste skæbne, med jer alle. Det kan findes på http://jadmadi.net/2006/06/26/php-sad-poem/ hvis du er interesseret [...]

Leave a Reply

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