Post your best C++ jokes, poems, stories, etc.

Pages: 1234... 6
Jul 27, 2009 at 11:58pm
A boy is smoking, irritating a girl who says, "Smoking's bad for you, don't you see the warning on the package?" The boy responds, "I'm a programmer. I don't give a shit about warnings, only about errors."

Sorry, that was kind of unrelated.
Last edited on Jul 27, 2009 at 11:58pm
Jul 28, 2009 at 1:07am
What a nub, I always compile with the warning level at max. (Too bad boost has warnings in some code otherwise I would use warnings = errors)
Jul 28, 2009 at 1:36am
Jul 28, 2009 at 2:16am
My favorite one is missing.

Haskell
You shoot yourself in the foot and nothing happens. The next time you try to walk, your foot becomes a mangled, bloody mess.

http://en.wikipedia.org/wiki/Lazy_evaluation
Jul 28, 2009 at 3:40am
Only an idiot would ignore warnings!

A surefire way to produce buggy code. "Warning: You're an idiot. Please learn a loosely-typed langauge where it doesn't matter so much."

Mr. QWERTY; I agree with your deduction, sir.

"Perl
You shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you."

So true...
Jul 28, 2009 at 8:08pm
LISP

You shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds...
Jul 28, 2009 at 10:08pm
I like this one:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* This example program expects that string constants to be stored
 * in WRITABLE memory.
 *
 * The GCC 4.x series no longer allows this -- so this program will
 * not compile for the latest GCC.
 *
 * On the GCC 3.x series, compile with the -fwritable-strings flag:
 *
 *   gcc -fwritable-strings -o stupid stupid.c
 *
 * For other compilers, your results may vary.
 */

#include <stdio.h>
#include <string.h>

int main() {
  printf( "%s\n", strcpy( "Stupider", "Stupid" ) );
  return 0;
  }
Jul 29, 2009 at 2:23am
LISP

You shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds...


Sorry to be a party-pooper, but this applies to LISP just as much as it applies to C or even Python. LISP is not a primarily recursive language, and if you think so, you've probably not used LISP, but Scheme (although admittedly a LISP dialect, I assumed LISP to be Common LISP).
Jul 29, 2009 at 2:24am
An OS written mainly in a functional language would be very interesting.


Done years ago. Ever heard of the LISP machines?
Jul 29, 2009 at 2:50am
I assumed LISP to be Common LISP
I assumed
Crass mistake.

Done years ago. Ever heard of the LISP machines?
Yes, but I was thinking something written to a) work with modern hardware and b) written to run on something younger than me.

By the way,
Ever heard of the LISP machines?
There's something about that phrasing I don't like.
Jul 29, 2009 at 3:37am
Yes, but I was thinking something written to a) work with modern hardware and b) written to run on something younger than me.

In that case, I'd like to see something like that too. Particularly 'b', since I have no way of procuring something that old.

There's something about that phrasing I don't like.

Hmm... What if I prepended a 'Have you'?
Last edited on Jul 29, 2009 at 3:38am
Jul 29, 2009 at 6:43pm
OOOOOH
THAT WAS MEAN.

This isn't fair... how come Perl gets all these stories and good jokes? We only really have the ones on the GNU website =[
Jul 29, 2009 at 8:10pm
OOOOOH
THAT WAS MEAN.


What was mean?
Jul 30, 2009 at 12:45am
I was joking, but the way you said "I have no way of procuring something that old" :O
Jul 30, 2009 at 1:05am
I was joking, but the way you said "I have no way of procuring something that old" :O


Oh :)
Jul 30, 2009 at 1:20am
This is what happens when you don't quote what you're replying to.

In any case, yeah. It's hard enough to find equipment from the early nineties. From the eighties, it's basically impossible unless it's in a museum or something.
Lisp machines were outperformed at running Lisp by the cheaper x86 during the very early 90s and manufacturers went out of business only a couple years later.

Wikipedia fails to mention whether LMs were garbage or the x86s were brilliantly engineered.
Jul 30, 2009 at 1:36am
Lisp machines were outperformed at running Lisp by the cheaper x86 during the very early 90s and manufacturers went out of business only a couple years later.

:D I didn't know that. That's pretty funny.

I only read the first paragraph of the article. Otherwise, I'll incessantly click on links to other Wikipedia articles.
Aug 2, 2009 at 9:24am
The longest possible function definition:(i hope so)
 
__stdcall __cdecl inline volatile static const unsigned long long int function();

hahaha
Aug 2, 2009 at 4:24pm
What about parameters? That could become:
__stdcall __cdecl inline volatile static const unsigned long long int function(unsigned long long int, unsigned long long int, unsigned long long int, unsigned long long int /* etc... */);
Aug 2, 2009 at 4:37pm
what about
__stdcall __cdecl inline volatile static const unsigned long long int& function();
hm?
or a bit cheating
__stdcall __cdecl inline volatile static const unsigned long long int *********/*...*/******function();
Pages: 1234... 6