<?xml version="1.0" standalone="no"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
        "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<article id="string_joke">
<articleinfo>
  <title>The String Joke</title>
  <author>
    <firstname>Michael</firstname>
    <surname>McDonnell</surname>
    <affiliation>
      <orgname>Winterstorm Solutions, Inc.</orgname>
    </affiliation>
  </author>
  <pubdate>
    <date>2004-09-10</date>    
  </pubdate>
  <copyright>
    <year>2004</year>
    <holder>Michael McDonnell and Winterstorm Solutions, Inc.</holder>
  </copyright>
  <legalnotice>
    <para>This document may be redistributed under the terms of <ulink url="http://www.gnu.org/copyleft/fdl.html">the GNU Free Documentation License</ulink>.</para>
  </legalnotice>
  <abstract>
    <para>A string joke for computer programmers.  You can tell this joke at a social gathering and quickly identify the programmers and the non-programmers.  Anyone who hasn't programmed in C or a similar language will not understand the joke but programmers will find it amusing.</para>
  </abstract>
  <keywordset>
    <keyword>joke</keyword>
    <keyword>programming</keyword>
  </keywordset>
</articleinfo>

<section id="the_joke">
<title>The String Joke</title>
<para>Two strings walk into a bar.</para>
<para>The first string says to the bartender, <quote>Give me a beer.</quote> The
bartender turns to the second string and says, <quote>and what about for
you?</quote> To which the second string replies,
<quote>I would also like a beer#@a9101gb230b81;kajf3#$B89*#()*13!$%#@$"</quote> and goes on and on
spewing gibberish.</para>
<para>The bartender, shocked, asks the first string, <quote>What is your buddy's problem?</quote></para>
<para>The first string answers, <quote>Oh, you'll have to excuse him, he isn't null terminated.</quote></para>
</section>

<section id="background">
<title>Background</title>
<para>I first heard this joke when I was an undergraduate.  I was told
that you could go to any social gathering and immediately know who was
a programmer and who was not by telling this joke.  The joke makes
absolutely no sense to people who haven't programmed in C or similar
languages.  At the same time, even a first year computing student
would understand the joke since problems with null terminated strings
plague novice programmers.</para>
<para>Go ahead and try it at the next party you attend.  Most of the
room stare at you mute and stupefied but that one programmer in the
room will identify him or her self by laughing aloud.</para>
</section>

<note>
<para>If your interested in the behavior behind humor, I suggest you look at the<ulink url="http://www.laughlab.co.uk/">laughlab study</ulink>.  They examined thousands of jokes across many cultures.  The study concluded by creating what they believe as <ulink url="http://www.richardwiseman.com/LaughLab/winner.html">the funniest universal joke</ulink>.</para>
</note>

</article>


