Live data from Hacker News

Ask HN: Anyone know any funny programming jokes?

news.ycombinator.com

741–750 of 905 posts

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

#742
post #159
post #134

Earlier quoted context omitted.

“Maybe if we all just close all windows, turn off the car, get out of the car and get back in.”

The touchscreen in my car is wonky (known issue, just haven't bothered to fix it), so when something goes sideways with the Bluetooth audio, turning the car off and back on is easily the fastest way to get my music back.

I will buy an electric car when they make one that doesn't require me to use a touchscreen.

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

#745
post #606

Earlier quoted context omitted.

Yeah that does push it a bit, but the joke is that she didn't understand what he was talking about with the 'onethirdxcubed', mis-parsing it without context. But when asked the integral, she knew the answer; not because she'd been told.

Ahh, thank you, that makes sense.

The version of the joke I'd heard doesn't include the waitress' attempt to meaninglessly memorize the answer. She simply nods when initially tutored, then later surprises both mathematicians that "an average person" knows how to properly solve an integration problem without any help.

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

#746
post #696
post #355

Earlier quoted context omitted.

Your thermos does not have a switch which you must set to "hot" or "cold" before inserting a liquid, handles solids as well as liquids, and doesn't require you to even think where the theshold might lie between the "hot" and "cold" settings. Instead it just does its best to prevent an energy exchange in either direction without having to even know the variables involved. And the "same subroutine" is basically used fo…

I deeply disagree! Our code is riddled with heavily overloaded meanings in a single value/domain, and if you have a variety of filters, you end up with this atrocity: Foo *f1; // hey, just test for NULL double f2; // hey, just use isnan() int f3; // aaaaah, crap bool f3_specified; // god why std::string f4; // requires heavy drugs to solve existential catastrophes Compare that to template struct Filter { bool is_spec…

I'm not sure they were suggesting using type-specific sentinel values (like null and nan), but to always use null or point to a value.

I like wrapping the information in a data structure exactly as you suggested, and if you never mutate the dereferenced pointer, it's equivalent to what they proposed. Big if, though.

The best is to do this generically with https://en.m.wikipedia.org/wiki/Option_type , since this pattern comes up regularly, not just with this one domain concept of "Filter"

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

#747

Earlier quoted context omitted.

Thats a rehash of an old joke: I know it soviet style: A mathematician, a physicist and a biologist are flying in a air balloon and are lost. They encounter a man walking below: The biologist asks him: "do you know, where we are?" "..." the man looks up and says nothing The physicist ask him: "can you please tell us, where we are!" "..." after a while the man says: "in a balloon". The mathematician remarks, ah, he mu…

I'm reminded of a joke I heard from a talk by the philosopher Dan Dennett: A philosopher takes his friend to a magic show. After the usual business of vanishing a few small mammals, the magician's assistant lies in a magic box, and the magician, with a dramatic flair, begins to saw through the box. The philosopher's friend leans over and asks What do you think is really going on? The philosopher gives it a moment's t…

A. Good joke.

B. I hate how applicable this joke is to my life. Except I'm the friend asking, then has to figure all the shit out because all the people around me with degrees cant tell the difference between their ass and a hole in the ground.

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

#748
post #673

Earlier quoted context omitted.

Haha, yes, that is so typical us programmers. We always know best and ofcourse there is a simple solution that fixes everything without even having to code a single line. But what if they enjoy the feeling of the sun on the skin while golfing? What if they are not completely blind but can see dark/light shades? This makes it much easier to keep balance.

I think the joke is that we programmers don't consider such implied requirements.

…and, at times, lack empathy to a frightening extent ;-)

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

#749

This is a variation on a joke I heard from the nerdy comedian Don McMillian... [1] I used to work at JPL, and I could tell what anyone's job was by asking them one question... What is Pi? Ask a mathematician, and they will say "Pi is ratio of a circle's circumference to its circle." Ask a physicist, and they will say "Pi is 3.141592653589793." Ask an engineer, and they will say "Pi is about 3, but just to be safe, le…

>Ask a mathematician, and they will say "Pi is ratio of a circle's circumference to its circle." its diameter.

Damn typo!

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

#750

Earlier quoted context omitted.

Ahh, thank you, that makes sense.

The version of the joke I'd heard doesn't include the waitress' attempt to meaninglessly memorize the answer. She simply nods when initially tutored, then later surprises both mathematicians that "an average person" knows how to properly solve an integration problem without any help.

I think that's a better version/telling.
Post reply on HN