This is a thread for posting funny/relatable/interesting poetry related to programming. My personal favorite is the Limerick:
(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
None of the following are mine, so I've cited them appropriately:
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).
Code:
source
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
(source + explanation)
Create/find and post your own!
_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
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).
Code:
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;
}
source
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
Quote:
Subclassing made Zope and TR
much harder to work with by far.
So before you inherit,
be sure to declare it
Adapter, not PyObject*
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!