Live data from Hacker News

Ask HN: Anyone know any funny programming jokes?

news.ycombinator.com

281–290 of 905 posts

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

#281

I don't understand why people find DNS so difficult, it’s just cache invalidation and naming things. source: https://twitter.com/jdub/status/739110670562557952?s=20

For context, I presume most of you have heard the old old joke that the two hard problems of computer science are cache invalidation, naming things, and off-by-one errors. (Or the older joke that the two hard problems of computer science are cache invalidation and naming things.)

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

#282

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."

Forgive me for my ignorance, but I don't really understand this joke...

Is it something to do with the first 2 not knowing the preference of the others?

EDIT: never mind, this was also posted later in the thread and there's an explanation there.

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

#283

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."

Nice this is my favourite so far!

Would you be kind and explain this joke please?

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

#284
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?

In something like typescript you could represent this as a union type. If I'm expecting a location I could take a string ("Baghdad"), lat long pairs, an enum, etc. With a union type I can specify that it could be any of these but they fill the same purpose. In Java I'd either do method overloading or expect to receive an object that implements a method that would give the location in a common format. The wrong way to do it would be to have a function that has both a lat/long input and a string input and just say that they're nullable and we only expect to get one of them.

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

#285

Not exactly programming per-se, but cute: A mechanical engineer, an electrical engineer, and a software engineer from Microsoft are in a car together, driving to a conference. They start down a hill when the brakes give out and they crash into a tree at the bottom of the hill. Luckily no one is seriously injured, and they set out to figure out what happened. The mechanical engineer examines the car and says "I believ…

I once worked on making a progress bar for a process that had a known number of tasks. Unfortunately not all tasks would take the same amount of time, and it was impossible to know the relative amount of time each task would take beforehand. I did the logical thing, and had the progress bar advance 1/nth every time a task completed, with an animation to make it less jarring. A few weeks later, the product manager came to me and told me I needed to make it so the progress bar kept slowly moving up if no tasks were completed for a certain amount of time, so the user would know that work was still being done. Fine. But what happens if the task takes so long that it goes past the mark for the next completed task? Well, when the task is actually completed, it moves backwards of course.

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

#289

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…

I sent this to a project manager once, and they didnt understand nor appreciate it.

I’m a project manager and find it hilarious! But i’ve also been technical.
Post reply on HN