(no subject)
Aug. 17th, 2009 01:54 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
A programmer is sent to the grocery store with instructions to "buy butter and see if they have eggs. If they do, buy ten."
Returning with ten butters, the programmer says, "They had eggs."
Returning with ten butters, the programmer says, "They had eggs."
(no subject)
Date: 2009-08-17 12:08 am (UTC)Am I the only one who reads it this way?
Date: 2009-08-17 12:12 am (UTC)Re: Am I the only one who reads it this way?
Date: 2009-08-17 09:42 am (UTC)(no subject)
Date: 2009-08-17 12:51 am (UTC)(no subject)
Date: 2009-08-17 01:19 am (UTC)(no subject)
Date: 2009-08-17 09:41 am (UTC)Missing programmer found in the shower
Date: 2009-08-17 02:00 am (UTC)Re: Missing programmer found in the shower
Date: 2009-08-17 05:13 am (UTC)(no subject)
Date: 2009-08-17 02:19 am (UTC)I'd be buying ten butters and ten eggs, because I don't want to be wrong, nor do I want to be yelled at.
I'd keep what was over-purchased, because it'll eventually be consumed by someone. If I returned the item to the store, it's likely to be thrown out, because it's deli (I dislike wasting food).
A response to "madeofmeat":
What does her joke have to do with autism? Unless there's something I'm missing?
oops
Date: 2009-08-17 02:21 am (UTC)(no subject)
Date: 2009-08-17 04:46 am (UTC)I'm not madeofmeat but I'm assuming a joking reference to overliteral and socially unadept behaviour associated with autism and aspergers - and the frequently proposed idea that programmers and engineers are often a bit further along the autistic spectrum than other people.
(no subject)
Date: 2009-08-18 03:57 pm (UTC)More often than not, I don't get jokes, so thanks for the enlightenment :) It is funny :D
(no subject)
Date: 2009-08-17 06:22 am (UTC)(no subject)
Date: 2009-08-17 07:32 am (UTC)"But honey! I'm only trying to follow the recipe for once!"
(no subject)
Date: 2009-08-17 07:33 am (UTC)(no subject)
Date: 2009-08-17 01:42 pm (UTC)(no subject)
Date: 2009-08-17 01:46 pm (UTC)I just don't care about them for more than inspirations.
And my wife is quite annoyed by my attitude towards recipes - she wants reproducibility for my cooking, not creativity! And the fact that I can't bring myself to keeping a
labcooking journal and thus may well have forgotten what I did that one time when it turned out absolutely magical annoys her constantly.(no subject)
Date: 2009-08-17 01:51 pm (UTC)Unfortunately this doesn't lend itself well to keeping notes, so we've had a lot of "that was amazing and we're never going to be able to recreate it" meals.
(no subject)
Date: 2009-08-17 01:58 pm (UTC)For one of our celebrate-that-we-still-love-each-other festivities in years past, I decided on a greek-ish theme. Acquired lamb mince, lots and lots of fresh basil, garlic, tomato sauce, honey, rice, yoghurt, cucumbers, chili, ginger, and possibly some more things.
Made the lamb balls very spicy. Studded with feta cheese. The tomato sauce honey-sweetened and mild, to offset and surprise. And made the tzatziki VERY garlicy. Somehow, the ginger in the meat balls lifted this dish from "really good" to "Hey, this is the most fantastic I have ever tasted - IN MY LIFE".
So, a few months later, my beloved
We try it over and over again, in intervals of maybe 3 months, over a few years, before the idea to add ginger surfaces. The entire process is coupled with her constantly berating my lack of journaling skills.
(no subject)
Date: 2009-08-17 02:20 pm (UTC)Other than that? Nah, recipes ar ethings that happen to other people. I can, usually, recreate a previously produced dish, if (and only if) I can re-capture the mindset at the time.
(no subject)
Date: 2009-08-17 02:22 pm (UTC)Very helpful, that kind of intuition.
(no subject)
Date: 2009-08-17 02:23 pm (UTC)(no subject)
Date: 2009-08-17 03:27 pm (UTC)(no subject)
Date: 2009-08-17 03:47 pm (UTC)And this one was a f*cking ambitious LARP even for Swedish standards: Kejsartemplet.
We built a CITY on a clearing in a forest. Everyone got material enough to build a 2-room house for themselves. And 2 days to do it in. The organizers got us literally a metric ton of bricks to build the oven from. And we shared courtyard with the sweet bakers and the smithy. Other groups built three-story towers, or took HUGE casks for the public bath house et.c.
And we lived the day-to-day life of the city during some of its more exciting days for a week. Neighbourhood squabbles mixed with High Politics (Oh GOD, the QUEEN has ordered baked goods!!) mixed with Elven Bastards Attacking The City mixed with ...
(no subject)
Date: 2009-08-17 04:10 pm (UTC)(no subject)
Date: 2009-08-17 08:34 am (UTC)(no subject)
Date: 2009-08-17 11:16 am (UTC)buy [one unit of] butter [from some vendor] and see if [that vendor] has [more than one] egg. If [that same vendor] has eggs, buy ten [units] [of those eggs].
We can see all these bindings explicitly by transliterating:
vendor.buy(butter, 1)
see = (vendor.has(egg) >= 1):
if vendor.has(egg) >= 1:
vendor.buy(egg, 10)
There's an obvious bug with 2 < eggs < 10.
I would actually be less surprised with the programmer who came back with 120 eggs. As the minimum purchase unit is typically 12, buying 10 units seems to be implied. This programmer would apply his standard vegan substitution rules and return with one tub of Earth Balance margarine and ten boxes of Egg Replacer (about 800 egg equivalents).
This parsing bug is significantly less serious than failure to properly track implied subjects and objects, as that parser feature is generally invoked multiple times per line of input.
Here's a related bug:
"Buy cookies and see if they have eggs. If they do, buy ten."
The programmer may return with 10 boxes of cookies if said cookies are made with eggs. The buggy parsing rule is "bind [they] to the last plural mentioned".
(no subject)
Date: 2009-08-17 11:59 am (UTC)Which made me think of another way to do this joke.
Man get's a note from his wife which reads "Get 10 eggs from the store."
Man calls wife from the store and says "Honey, is this in binary or hexadecimal?"
Wife say "Men are so stupid. You make things too complicated because you ignore the obvious.
It's in ternary."
(no subject)
Date: 2009-08-21 12:26 am (UTC)Open the door and put it in.
(no subject)
Date: 2009-08-21 12:27 am (UTC)(no subject)
Date: 2009-08-21 01:03 pm (UTC)I can also conclude that you plan to use the elephant first, or that the elephant blocks access to the giraffe shelf or drawer.