dslreports logo
 
    All Forums Hot Topics Gallery
spc
Search similar:


uniqs
9092

tempnexus
Premium Member
join:1999-08-11
Boston, MA

12 recommendations

tempnexus

Premium Member

Wife of a computer programmer

A wife asks her husband, a computer programmer; "Could you please go to the store for me and buy one carton of milk, and if they have eggs, get 6!"

A short time later the husband comes back with 6 cartons of milk.

The wife asks him, "Why the hell did you buy 6 cartons of milk?"

He replied, "They had eggs."
19579823 (banned)
An Awesome Dude
join:2003-08-04

19579823 (banned)

Member

 

Hehe the guys mind was elsewhere i gather.
PX Eliezer704
Premium Member
join:2008-08-09
Hutt River

PX Eliezer704

Premium Member

said by 19579823:

Hehe the guys mind was elsewhere i gather.

I don't think you got the joke.

He followed his wife's instructions perfectly.

Look at it from a programming point of view.
doppler
join:2003-03-31
Blue Point, NY

doppler to tempnexus

Member

to tempnexus

Re: Wife of a computer programmer

If you nibble at it. You will get the bit of comedy.

goalieskates
Premium Member
join:2004-09-12
land of big

goalieskates to tempnexus

Premium Member

to tempnexus
Perfect illustration of how different programmers can be. Heeeeee. Thanks!

Drunkula
Premium Member
join:2000-06-12
Denton, TX

Drunkula to tempnexus

Premium Member

to tempnexus
Hell when I first read it I thought he did the right thing. Damn! What can I say? I AM a programmer... I guess the simplest algorithm is not always the best.

Buddel
If it ain't broke, don't fix it.
Premium Member
join:2004-03-06
EU

2 edits

Buddel to tempnexus

Premium Member

to tempnexus
Typical! He did exactly what his wife asked him to do, but some women just cannot be pleased.

PS: I'm surprised he actually went to a shop just to get milk. As a programmer, I would have expected him to order his milk online.

KodiacZiller
Premium Member
join:2008-09-04
73368

4 recommendations

KodiacZiller to tempnexus

Premium Member

to tempnexus
What the wife actually said:

#!/usr/bin/env python
 
from SuperMarkets import check_out, find_markets, inventory
 
def run_errand(milk, eggs):
    shopping_cart = []
    if 'milk' in inventory and 'eggs' in inventory:
        shopping_cart.append(milk * 6)
    elif 'milk' in inventory and 'eggs' not in inventory:
        shopping_cart.append(milk)
    else:
       print 'Store has no milk.  Try another.'
       find_markets()
 
    check_out(shopping_cart) 
    
if __name__ == '__main__':
    run_errand(milk='milk', eggs='eggs')
 

What the wife should have said to her programmer husband:

#!/usr/bin/env python
 
from SuperMarkets import check_out, find_markets, inventory
 
def run_errand(milk, eggs):   
    shopping_cart = [] 
    if 'milk' in inventory and 'eggs' in inventory:
        shopping_cart.append(milk + eggs)            
    elif 'milk' in inventory and 'eggs' not in inventory:
        shopping_cart.append(milk)            
    elif 'eggs' in inventory and 'milk' not in inventory:
        shopping_cart.append(eggs)
        print 'Buy eggs, then go to another store for milk.'
        find_markets()
    else:
        print 'Store has no eggs or milk.  Try another.' 
        find_markets()
     
    check_out(shopping_cart) 
    
if __name__ == '__main__':
    run_errand(milk='milk', eggs='eggs' * 6)
 

Coders here should understand the difference in the two above snippets.

jabarnut
Light Years Away
Premium Member
join:2005-01-22
Galaxy M31

1 recommendation

jabarnut to tempnexus

Premium Member

to tempnexus
Heh...at least she didn't say "and if they have eggs, get 2 dozen".
The guy would have cleaned out their entire inventory of milk.
Bobcat79
Premium Member
join:2001-02-04

1 recommendation

Bobcat79 to tempnexus

Premium Member

to tempnexus
Q. What does a snobby computer programmer use to row a boat?

A. An exclusive oar!
ctggzg
Premium Member
join:2005-02-11
USA

ctggzg to PX Eliezer704

Premium Member

to PX Eliezer704

Re:  

said by PX Eliezer704:

He followed his wife's instructions perfectly.

But he didn't. In case of ambiguity, the "6" implicitly modifies the nearest article, the eggs.

tempnexus
Premium Member
join:1999-08-11
Boston, MA

tempnexus to KodiacZiller

Premium Member

to KodiacZiller

Re: Wife of a computer programmer

said by KodiacZiller:

What the wife actually said:

#!/usr/bin/env python
 
from SuperMarkets import check_out, find_markets, inventory
 
def run_errand(milk, eggs):
    shopping_cart = []
    if 'milk' in inventory and 'eggs' in inventory:
        shopping_cart.append(milk * 6)
    elif 'milk' in inventory and 'eggs' not in inventory:
        shopping_cart.append(milk)
    else:
       print 'Store has no milk.  Try another.'
       find_markets()
 
    check_out(shopping_cart) 
    
if __name__ == '__main__':
    run_errand(milk='milk', eggs='eggs')
 

What the wife should have said to her programmer husband:

#!/usr/bin/env python
 
from SuperMarkets import check_out, find_markets, inventory
 
def run_errand(milk, eggs):   
    shopping_cart = [] 
    if 'milk' in inventory and 'eggs' in inventory:
        shopping_cart.append(milk + eggs)            
    elif 'milk' in inventory and 'eggs' not in inventory:
        shopping_cart.append(milk)            
    elif 'eggs' in inventory and 'milk' not in inventory:
        shopping_cart.append(eggs)
        print 'Buy eggs, then go to another store for milk.'
        find_markets()
    else:
        print 'Store has no eggs or milk.  Try another.' 
        find_markets()
     
    check_out(shopping_cart) 
    
if __name__ == '__main__':
    run_errand(milk='milk', eggs='eggs' * 6)
 

Coders here should understand the difference in the two above snippets.

I have just two words for this: "FCKING GREAT!"

DrModem
Trust Your Doctor
Premium Member
join:2006-10-19
USA

7 recommendations

DrModem

Premium Member

The real joke is that the programmer had a wife
centacre
join:2003-03-17
Cypress, TX

1 recommendation

centacre

Member

said by DrModem:

The real joke is that the programmer had a wife


Exodus
Your Daddy
Premium Member
join:2001-11-26
Earth

1 recommendation

Exodus to DrModem

Premium Member

to DrModem
said by DrModem:

The real joke is that the programmer had a wife

i lol'd

The Limit
Premium Member
join:2007-09-25
Denver, CO

The Limit to Bobcat79

Premium Member

to Bobcat79
HAHAHA!
The Limit

1 recommendation

The Limit to DrModem

Premium Member

to DrModem
Lol, had? Does that imply he lost the wife after his screwup?

AVD
Respice, Adspice, Prospice
Premium Member
join:2003-02-06
Onion, NJ

1 recommendation

AVD

Premium Member

that he was too nerdy to get laid in the first place

gattaca
Premium Member
join:2003-05-28
USA

1 edit

3 recommendations

gattaca to tempnexus

Premium Member

to tempnexus
Or, for a Linux user...

WIFE: "Could you please go to the store for me and buy one carton of milk, and if they have eggs, get 6!"

HUSBAND: "Get it yourself."

WIFE: "Sudo !!"

HUSBAND: "OK."

Based on the XKCD comic, of course...

habskilla
join:2005-09-19
Moncton, NB

habskilla

Member

MY GOD, LOL

AVD
Respice, Adspice, Prospice
Premium Member
join:2003-02-06
Onion, NJ

AVD to gattaca

Premium Member

to gattaca
this would work for and ***ix variant

james16
join:2001-02-26

james16 to 19579823

Member

to 19579823

Re:  

said by 19579823:

Hehe the guys mind was elsewhere i gather.

You are adorable.
neftv
join:2000-10-01
Broomall, PA

1 recommendation

neftv to tempnexus

Member

to tempnexus

Re: Wife of a computer programmer

I get it. Haha... I probably would have gotten 6 cartons of milk and and 6 cartons of eggs because of a virus. haha.

jaynick
lit up
Premium Member
join:2001-02-06
Sterling Heights, MI

1 recommendation

jaynick to tempnexus

Premium Member

to tempnexus
That's a classic.

AVD
Respice, Adspice, Prospice
Premium Member
join:2003-02-06
Onion, NJ

1 recommendation

AVD to neftv

Premium Member

to neftv
said by neftv:

I get it. Haha... I probably would have gotten 6 cartons of milk and and 6 cartons of eggs because of a virus. haha.

I would have gotten a six pack of beer and spent some time in a strip club because of a "malware redirection".

antdude
Matrix Ant
Premium Member
join:2001-03-25
US

antdude

Premium Member

said by AVD:

said by neftv:

I get it. Haha... I probably would have gotten 6 cartons of milk and and 6 cartons of eggs because of a virus. haha.

I would have gotten a six pack of beer and spent some time in a strip club because of a "malware redirection".

Strip clubs don't have virus? :P
19579823 (banned)
An Awesome Dude
join:2003-08-04

19579823 (banned) to PX Eliezer704

Member

to PX Eliezer704

 

quote:
I don't think you got the joke.

He followed his wife's instructions perfectly.

Look at it from a programming point of view.
Ya i suppose so but if someone had me goto the store and said this,i would have gotton 6 eggs

jaykaykay
4 Ever Young
MVM
join:2000-04-13
USA

jaykaykay to tempnexus

MVM

to tempnexus

Re: Wife of a computer programmer

LOL. I am nowhere near a programmer nor did I understand the joke from that viewpoint. However...I still got the joke for some reason. I guess it's what happens around here every day whenever there's something left up to my mate - even when things are listed in writing.

Chuck22
Premium Member
join:2003-11-10
Salt Lake City, UT

2 recommendations

Chuck22 to ctggzg

Premium Member

to ctggzg

Re:  

said by ctggzg:

But he didn't. In case of ambiguity, the "6" implicitly modifies the nearest article, the eggs.

Due to the comma structure (parenthetical), the "get 6" modifies the main subject (milk).

GadgetsRme
RIP lilhurricane and CJ
Premium Member
join:2002-01-30
Canon City, CO

GadgetsRme

Premium Member

said by Chuck22:

said by ctggzg:

But he didn't. In case of ambiguity, the "6" implicitly modifies the nearest article, the eggs.

Due to the comma structure (parenthetical), the "get 6" modifies the main subject (milk).

+1