This is a thread for posting funny/relatable/interesting poetry related to programming. My personal favorite is the Limerick:

_iPhoenix_'s on-demand adjusted Wikipedia wrote:
A limerick is a form of verse, often always humorous and sometimes never obscene, in five-line, predominantly anapestic (unstressed-unstressed-stressed) meter with a strict rhyme scheme of AABBA, in which the first, second and fifth line rhyme, while the third and fourth lines are shorter and share a different rhyme.

(blah blah blah nerd stuff blah blah blah)

Here are some limericks I made myself (I posted these in SAX):

A man named Dave
There once was a man named Dave,
who thought he would try to be brave.
He touched my code
and made it explode
so now he is in a mass grave.

I'm too lazy to check the inputs to my slope calculation.
Please don't let x be zero,
I'll force you to eat a guiro.
It'll crash the game,
You'll hate git blame
And you'll be compared to Emperor Nero.

Darn C++
Will this machine ever halt?
Filled with code, nothing occult
I made it compile
(it took a short while)
But all that I got was a segfault Sad

None of the following are mine, so I've cited them appropriately:
Leigh Mercer wrote:

That image took wayyy too long to make, because I took a screenshot of the wikipedia image and used some crappy photo editing tools to change the background
A dozen, a gross, and a score
Plus three times the square root of four
Divided by seven
Plus five times eleven
Is nine squared and not a bit more.

from here

Not strictly a limerick, but good poetry nonetheless (I think parts of this may have been subconscious inspiration to one of my limericks above).

int MyFunction()
    // There once was a man named Dave
    int Result = 0;

    // Whose code just wouldn't behave
    MyObject *Ptr = new MyObject();

    // He left to go to a meetin'
    Result = Ptr->DoSomething();

    // And left his memory a leakin'
    return Result;

Edit; one of the comments on the stackoverflow post made me realize this is actually an extremely clever "limerick"! The memory leak "prevented" the last line from showing up

Subclassing made Zope and TR
much harder to work with by far.
So before you inherit,
be sure to declare it
Adapter, not PyObject*

(source + explanation)

Create/find and post your own!
Some limericks...
My shoddy programming skills
I thought that I could code great,
My code I rarely ever hate,
but this code is horrendous,
yet the effort, tremendous,
and now I must recreate.

My misuse of comments
The code was written with haste,
I had not time for breaks,
But what does this do,
I really have no clue,
Perhaps, I should have comments interlaced.
I hate limericks.
I just woke up today,
My spirits begin to decay,
The first post is poetry,
It's like a foe to me,
All I have left to say is Just Joking
If you like this thread, then you might also like this book:
I saw one a while ago that I think was written by weregoose
weregoose? wrote:
A programmer started to cuss
Because getting to sleep was a fuss
As he lay there in bed
Looping 'round in his head
was: while(!asleep()) sheep++;
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum