Live data from Hacker News

Ask HN: Anyone know any funny programming jokes?

news.ycombinator.com

271–280 of 905 posts

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

#272
post #205

Earlier quoted context omitted.

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 o…

There is also the ambiguous answer that first two give. Is their response "I don't know" or is it "I don't, no".

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

#274
post #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.

No. A logician is a lounge act that saws a log in half.

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

#276

One of my all time favorites. Can’t remember where I first read it (Quora?), but it’s currently my top Google hit for “balloon programmer project manager joke”. [0] ============ A man is flying in a hot air balloon and realizes he is lost. He reduces height and spots a man down below. He lowers the balloon further and shouts: "Excuse me, can you help me? I promised my friend. I would meet him half an hour ago, but I…

[deleted]

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

#277
post #193

This is an oldie (I first heard it in the 80s) but is one of my all time favorites. While it can be told about any two classes of people it really applies to a lot of code I encounter: A physicist is showing a thermos to her friend, a programmer. "It's amazing", she said. "You put a cold drink inside and regardless of how hot it is outside the drink stays cold". The programmer is suitably impressed. "But that's not a…

Could you share an example of this? I could be misinterpreting this but say you're building a survey system and you need to keep track of answer types (e.g. text, date, etc) and the answer itself, how can you collapse that into one field?

You have an Answer object that probably contains a type enum.

However, you don't need to name all variables "answerObject".

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

#278

Earlier quoted context omitted.

If you mean you're not a programmer, rad, good compliment. If you mean QA engineers aren't programmers... wtaf?

It's weird how some people admit they still test code by hand

If “by hand” you mean using your hands to type code that generates tests, then yes, I admit to testing code by hand.

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

#280
post #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…

I remember my mother telling that joke to her friends at a cocktail party in the 70s. I thought she was the funniest person ever.
Post reply on HN