Geeky Joke

Posted: February 18, 2011 in 2011, General

A computer programmer’s wife asks him to go shopping. “Get a pint of milk and if they have eggs, get six”

He came home with six pints of milk.

Advertisements
Comments
  1. Nicole says:

    Very funny. I’m being stupid, why does this relate to computer programming specifically?

    • slowjo61 says:

      In my limited experience of programming you might get code which reads:

      get milk
      {
      if (have eggs) {
      Get 6 milk;
      }
      else {
      Get 1 Pint of milk;
      }
      }

      Normal logic would say… get 1 pint of milk and if they have any eggs in stock get me six (eggs).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s