!false It's funny, because it's true!
Ask HN: Anyone know any funny programming jokes?
711–720 of 905 posts
Re: Ask HN: Anyone know any funny programming jokes?
#712My favorite: ===================== A Computer Programmer finds a frog by the side of the road. The frog says, "I am actually a Princess! If you kiss me, I'll revert back to my human form and be forever grateful?", the programmer smiles and puts the frog back in his pocket. Again, the frog says, "But I really am! I would even marry you if you kiss me and turn me back into a human!", the programmer chuckles and puts th…
For the topic: the programming version of the joke would be where it's a disgruntled e.g. D-Wave employee selling a stolen "quantum computer" at a flea market that can demonstrably break RSA encryption, and he thinks he duped the buyer because "it's really just a fancy classical computer".
Re: Ask HN: Anyone know any funny programming jokes?
#713Earlier quoted context omitted.
Sometimes you might want to know success though. So... status = destroyCity(&city); This way, because assumingely we may mutate city in some way we’ll still have what comes after to examine, we didn’t pass the name or Od of the city, but the location itself. And we’ll know if overall our destruction worked. It’s also better if you code to MIRSA destruction.
Because passing the city by copy is way too expensive and won't destroy the original city anyway.
A programmer is drafted by the military and ordered to write the software for a city destroying weapon. Given the freedom to choose the implementation language, he chooses Javascript. The user enters the city to be destroyed, which is passed to the Function destroyCity().
The General returns from the weapon's fist use in battle furious. "We fired your damn weapon at Bahgdad, and the city's still there! What's going on?"
"I think I know" says the programmer. Javascript passes it's parameters by value, not by reference."
Re: Ask HN: Anyone know any funny programming jokes?
#714Re: Ask HN: Anyone know any funny programming jokes?
#715Earlier quoted context omitted.
Ah yes the triple-boolean
Reminds me of our five value boolean we used to have: is_deleted. Woe to person who expected that to be 1 or 0. Five distinct and overloaded values were possible, though I now forget them. Probably something like pending, fully deleted, being restored, not deleted, and restored.
Re: Ask HN: Anyone know any funny programming jokes?
#716Re: Ask HN: Anyone know any funny programming jokes?
#717Earlier quoted context omitted.
A similar joke I heard recently: A helicopter was flying around above Seattle when an electrical malfunction disabled all of the aircraft's electronic navigation and communications equipment. Due to the clouds and haze, the pilot could not determine the helicopter's position and course to fly to the airport. The pilot saw a tall building, flew toward it, circled, drew a handwritten sign, and held it in the helicopter…
This joke must have been written by a journalist who's never been to Microsoft and doesn't bother to fact check their work, since the Microsoft campus is in Redmond and the tallest buildings there are only six stories high.
Re: Ask HN: Anyone know any funny programming jokes?
#718(Not my joke) At a recent real-time Java conference, the participants were given an awkward question to answer: "If you had just boarded an airliner and discovered that your team of programmers had been responsible for the flight control software, how many of you would disembark immediately?" Among the forest of raised hands only one man sat motionless. When asked what he would do, he replied that he would be quite c…
Re: Ask HN: Anyone know any funny programming jokes?
#719In FORTRAN, by default, any variable name that starts with I,J,K,L,M or N is an integer, otherwise it is a real type.
Re: Ask HN: Anyone know any funny programming jokes?
#720Maine.