You are not logged in.
A programmer is sent to the supermarket with instructions to "buy butter and if they have eggs then buy a dozen."
Returning with 12 butters, the programmer says, "they had eggs".
"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman
Offline
Hi MathsisFun;
I think he did the right thing.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
It took me a while to get it but that's pretty kool! My friend got an email about something like that...
People don't notice whether it's winter or summer when they're happy.
~ Anton Chekhov
Cheer up, emo kid.
Offline
Good One! (read it 6 months late)
igloo myrtilles fourmis
Offline
i dont get it
im only young thats why
someone explain it plz
Offline
Offline
crystal,
It is not a very good joke.
"buy butter and if they have eggs then buy a dozen."
Coders are seen as pedantic persons with absolutely no common sense. This coder was told definitely to buy butter. He was then told that if they have eggs, buy a dozen. The stupid coder thought "the condition IF THEY HAVE EGGS has been met, so I must follow the next instruction, which is buy a dozen. Only an idiot would think that buy a dozen referred to butter. This is because eggs come in dozens, and are a normal purchase, and nobody would buy 12 packs of butter....
Way to go?
Offline
Hey, it's not the programmer's fault if he got bad instructions.
Why did the vector cross the road?
It wanted to be normal.
Offline
Very good Joke Funny To
why is this a joke? I would have done the same thing.... wouldn't everyone have done that too? I no get it >_<
Of Moons, Birds and Monsters
Offline
I dont know.
buy butter is a specific instruction, so pop a block into your basket
and means more instructions are coming
if they have eggs means if there are eggs on sale, chicken duck or ostrich, it doesn't matter, read the next instruction
if there are no eggs on sale, you have finished, proceed to checkout
buy a dozen means I don't want 6 or 24 now proceed to checkout
Hum why i didt come up with the answer
if they have eggs means if there are eggs on sale
Why now limit the eggs to those that are on sale? That adds a constraint to the original instructions.
Last edited by phrontister (2010-03-09 10:24:23)
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
Yes I Agree.
>_>
<_<
>_<
it looks like everyone gets it except me...
^_^
oh well
Of Moons, Birds and Monsters
Offline
Dont be sad.:)
hahahaa, thanks
Of Moons, Birds and Monsters
Offline
You are welcome:)
I knew a fellow, early twenties, who aspired to be a professional programmer.
He showed me some code for a program he was writing (BASIC).
At one point he had code like
if x < 10 then
if x < 8 then
(code)
else if x < 5 then
(code)
Unfortunately, much of this sort of thing goes on in professional programming.
Offline
programmers have noticed it's much easier to program an automatic insult generator than a worship generator.
and that death of people was always the same : enough money was put in the bet, that it was worth programming the death of with certainty : take bill with the more money corresponding, say the cause.
Last edited by jk22 (2010-07-05 05:20:06)
Offline
>_>
<_<
>_<
it looks like everyone gets it except me...
^_^
oh well
apparently, I'm in the same boat as you...
Offline
I knew a fellow, early twenties, who aspired to be a professional programmer.
He showed me some code for a program he was writing (BASIC).
At one point he had code like
if x < 10 then
if x < 8 then
(code)
else if x < 5 then
(code)Unfortunately, much of this sort of thing goes on in professional programming.
Yeah! tell me about it. I work with artists who think because they have learned how write a small script
they are somehow equivalent to god. Not only do they do things like this, they also NEVER comment their
code. Then to add further complication they needlessly split functions out into separate files. Also they
don't document or provide test data for the program. As a result when you come to make some changes
you have to go through the whole thing line by line. They don't seem to understand the concept of making
it work on paper before going anywhere near a keyboard.
These people are a menace and have no business being in charge of a programming language.
I see it, but I don't believe it.
Offline
Hi DaveRobinsonUK1;
Calm down Dave. Thoughts like that only elevate your blood pressure. They do not change the way they work.
But between you and I, you are absolutely correct.
They don't seem to understand the concept of making
it work on paper before going anywhere near a keyboard.
I did not think anyone coded like that anymore or even knew about it.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline