{"id":190,"date":"2004-09-25T00:49:00","date_gmt":"2004-09-25T00:49:00","guid":{"rendered":"http:\/\/jclark.org\/weblog\/Miscellany\/devhumor.html"},"modified":"2007-11-10T11:17:18","modified_gmt":"2007-11-10T15:17:18","slug":"devhumor","status":"publish","type":"post","link":"https:\/\/jclark.org\/weblog\/2004\/09\/25\/devhumor\/","title":{"rendered":"Developer Humor"},"content":{"rendered":"<p>Sometimes we get a little punchy around the office on a Friday afternoon.  I came up with an idea in the middle of a debugging conversation, and had to run with it.  If you&#8217;re not at least passingly familiar with C, it just isn&#8217;t funny; don&#8217;t waste your time.<\/p>\n<blockquote>\n<p>user: what&#8217;s a handle?<\/p>\n<p>hacker:   No, <code>*what<\/code>&#8216;s a pointer.<\/p>\n<p>user: I don&#8217;t know.  What is a pointer?<\/p>\n<p>hacker:   Yes.<\/p>\n<p>user: But where is the data?<\/p>\n<p>hacker:   No, <code>&amp;where<\/code> is the address.  The data is there.<\/p>\n<p>user:     where?<\/p>\n<p>hacker:   The address.<\/p>\n<p>user:     So where&#8217;s the pointer?<\/p>\n<p>hacker:   No, <code>*what<\/code>&#8216;s the pointer.  <code>&amp;where&#039;s<\/code> the address.<\/p>\n<p>user: And the pointer?<\/p>\n<p>hacker: <code>*what<\/code>.<\/p>\n<p>user: The pointer?<\/p>\n<p>hacker:   <code>*what<\/code>.<\/p>\n<p>user: THE POINTER?<\/p>\n<p>hacker:   <code>*what<\/code>!<\/p>\n<p>user: Forget it.<\/p>\n<p>hacker:   No, you can&#8217;t <code>forget(it)<\/code>, you need a handle for that<\/p>\n<p>user: But what&#8217;s a handle?<\/p>\n<p>hacker:   No, <code>*what<\/code>&#8216;s a pointer.<\/p>\n<p>user:   I can&#8217;t handle this anymore.<\/p>\n<p>hacker.   That&#8217;s because <code>this<\/code> is an object.  You have to use <code>this-&gt;handle()<\/code>.<\/p>\n<p>user:   what handle?<\/p>\n<p>hacker:   No, <code>*what<\/code>&#8216;s a pointer.<\/p>\n<p>user: I don&#8217;t know!  I don&#8217;t understand it!<\/p>\n<p>hacker:   <code>it<\/code>&#8216;s just an integer, which is why you can&#8217;t <code>forget(it)<\/code>&#8230;<\/p>\n<p>user: I need a handle for that?<\/p>\n<p>hacker: No, <code>that()<\/code> returns a handle.<\/p>\n<p>user: And what is that?<\/p>\n<p>hacker:   A function that returns a handle.<\/p>\n<p>user: But what&#8217;s a handle?<\/p>\n<p>hacker: No, <code>*what<\/code>&#8216;s&#8230;<\/p>\n<p>user:     A pointer!  I got it.  But what does it point to?<\/p>\n<p>hacker:   <code>it<\/code>&#8216;s not a pointer, <code>it<\/code>&#8216;s an integer.<\/p>\n<p>user: Fine.  what&#8217;s an integer?<\/p>\n<p>hacker:   No, <code>it<\/code>&#8216;s an integer. <code>*what<\/code>&#8216;s a pointer.<\/p>\n<p>user:   I quit.<\/p>\n<p>hacker:   Be sure you return an exit code.<\/p>\n<p>user:     But I didn&#8217;t take one!<\/p>\n<p>hacker:   What are you talking about?<\/p>\n<p>user: !!<\/p>\n<\/blockquote>\n<p>With apologies to\n<del>Laurel and Hardy<\/del> Abbot &amp; Costello. <\/p>","protected":false},"excerpt":{"rendered":"<p>Sometimes we get a little punchy around the office on a Friday afternoon. I came up with an idea in the middle of a debugging conversation, and had to run with it. If you&#8217;re not at least passingly familiar with C, it just isn&#8217;t funny; don&#8217;t waste your time. user: what&#8217;s a handle? hacker: No, [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-miscellany"],"_links":{"self":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":0,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"wp:attachment":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}