Live data from Hacker News

Ask HN: Anyone know any funny programming jokes?

news.ycombinator.com

201–210 of 905 posts

Re: Ask HN: Anyone know any funny programming jokes?

#201

How many IBM employees does it take to change a light bulb? Fifteen. Five to do it, and ten to write document number GC7500439-001, Multitasking Incadescent Source System Facility, of which 10% of the pages state only "This page intentionally left blank".

How many IBM 360s does it take to execute a job?

Three: Two to hold it down, one to cut its head off.

Re: Ask HN: Anyone know any funny programming jokes?

#204

Earlier quoted context omitted.

Ah, logic jokes... Three philosophers walk into a bar, and the bartender asks: "Do you all want a drink?" The first one says "I don't know." The second one says "I don't know." The third one says "Yes!"

Ugh this is why I hated logic problems in school. Anyone care to help a poor soul understand the meaning of this joke?

It’s a short circuiting conjunction. Consider `aliceWantsADrink && bobWantsADrink`. If Alice doesn’t want a drink, she knows it’s not the case that both of them want a drink. Since she says “maybe” instead of “no” she signals to Bob that she wants a drink, and so he concludes they both want a drink.

Re: Ask HN: Anyone know any funny programming jokes?

#205

Earlier quoted context omitted.

Ah, logic jokes... Three philosophers walk into a bar, and the bartender asks: "Do you all want a drink?" The first one says "I don't know." The second one says "I don't know." The third one says "Yes!"

Ugh this is why I hated logic problems in school. Anyone care to help a poor soul understand the meaning of this joke?

The question is "Do you all want a drink?" They're all answering with the logical meaning of "all", where it's yes if and only if every single one of them wants a drink, not the common meaning. Their responses are the value of the predicate `(A wants a drink) AND (B wants a drink) AND (C wants a drink)`.

If either of the first two didn't want a drink, they would be able to answer "no". They each started off knowing one of the terms in that logical AND above. (They know their own preferences are either "yes" and "no" but they aren't yet aware of the others' preferences, and they each know the others know that.)

For example, if (A wants a drink) is false, then the whole predicate is false. So if A didn't want a drink, A would've said "no". But instead they say "I don't know". They could only have not known if they actually do want a drink but are unsure whether both of the others also do. But after the first two people each say something that reveals they do want a drink, the third person "C" knows that:

1. A wants a drink (or they would have said "no")

2. B wants a drink (or they would have said "no")

3. C wants a drink (knowledge of their own preferences)

and finally has enough information to conclude that the overall predicate is true.

Re: Ask HN: Anyone know any funny programming jokes?

#206

If programming seems hard, it might be because you need to learn a separate discipline depending on the order of magnitude of your codebase LOC: 10⁰: Axiomatics 10¹: Logic 10²: Mathematics 10³: Computer Science 10⁴: Software Engineering 10⁵: Group Psychology 10⁶: Politics 10⁷: Crisis Management

Neat!

Re: Ask HN: Anyone know any funny programming jokes?

#207

Three logisticians just finished dinner, and the waitress comes up and asks "do y'all want dessert?" The first logistician says "I don't know." The second also says "I don't know." The last says "yes, we would."

"Logician". A logistician is someone who deals with logistics.

Re: Ask HN: Anyone know any funny programming jokes?

#209
This is my programming version of another joke I heard:

A guy walks into a bar and sees a group of people. One of them says a number and the rest laugh. Then the next person says a number and everyone laughs again.

"What are you doing?" he asks them.

"We're telling each other jokes, but since we keep telling the same ones, we've assigned each a number and rather than telling the whole joke all over again, we can just reference it quickly that way"

"Can I try?"

"Sure, go ahead"

"42", the guy says.

Everyone starts laughing and laughing and won't stop.

"What did I say?"

"Well you see, the joke you told us was:

A guy walks into a bar and sees a group of people. One of them says a number and the rest laugh... etc. etc."

---

In the original joke the last answer was simply "We hadn't heard that one before", but I'd like to think my recursive version has more depth to it.

Post reply on HN