Jump to content



Photo

Programmer logic in everyday life

joke joke

  • Please log in to reply
35 replies to this topic

#1 V9s

V9s

    Neowinian

  • 771 posts
  • Joined: 21-May 05
  • Location: Karachi

Posted 05 June 2012 - 08:27

Posted Image


#2 +Odom

Odom

    Neowinian Senior

  • 1,604 posts
  • Joined: 09-August 06

Posted 05 June 2012 - 11:02

lol (Y)

#3 +devHead

devHead

    Get Off The Bandwagon, Put Down The Handbook

  • 2,663 posts
  • Joined: 08-August 01
  • Location: Arizona... Among The Trees
  • OS: Windows 8.1 Pro
  • Phone: Nokia Lumia 521

Posted 05 June 2012 - 11:05

Ah classic!! I love it! (Y)

#4 Ben Dyson

Ben Dyson

    Neowinian

  • 104 posts
  • Joined: 01-September 10
  • Location: Cornwall, United Kingdom
  • OS: Mac OS X

Posted 05 June 2012 - 11:08

HA! Nice one :laugh:

#5 Hum

Hum

    totally wAcKed

  • 62,052 posts
  • Joined: 05-October 03
  • Location: Odder Space
  • OS: Windows XP, 7

Posted 05 June 2012 - 16:22

didn't really understand it -- oh well.

#6 The Dingus Diddler

The Dingus Diddler

    Sir Derpy McHerperton III

  • 1,933 posts
  • Joined: 04-October 10
  • Location: Scotland
  • OS: Windows 8.1 Pro
  • Phone: Nokia Lumia 1020

Posted 05 June 2012 - 16:27

Just did a programing module in my course, people from the other group were our clients... All I can say is "THIS"

#7 spacer

spacer

    I'm awesome

  • 6,445 posts
  • Joined: 09-November 06
  • Location: Connecticut, USA
  • OS: Windows 7
  • Phone: Nexus 4

Posted 05 June 2012 - 16:37

It's funny because it's true. :laugh:

#8 +LogicalApex

LogicalApex

    Software Engineer

  • 6,154 posts
  • Joined: 14-August 02
  • Location: Philadelphia, PA
  • OS: Windows 7 Ultimate x64
  • Phone: Nexus 5

Posted 05 June 2012 - 16:38

didn't really understand it -- oh well.


Programmers take everything literally as our instructions to the device are literal.
So the condition as expressed literally was to bring back 6 cartons of milk if the store had eggs in stock.
A "normal" person would interpret it to mean bring back 6 eggs if they have any eggs and one carton of milk. As they would do what makes the most sense even if that isn't the literal request.

#9 Hum

Hum

    totally wAcKed

  • 62,052 posts
  • Joined: 05-October 03
  • Location: Odder Space
  • OS: Windows XP, 7

Posted 05 June 2012 - 16:40

^ Oh -- I thought of the programming 'easter eggs' -- didn't see how there would be any on milk bottles.

#10 tsupersonic

tsupersonic

    Neowinian Senior

  • 6,505 posts
  • Joined: 30-September 06
  • Location: USA
  • OS: Win. 8.1 Pro. x64/Mac OS X
  • Phone: iPhone 5S/Nexus 5

Posted 05 June 2012 - 16:46

Ha, nice one.

#11 Skwerl

Skwerl

    Neowinian Ancient

  • 1,747 posts
  • Joined: 02-August 01
  • Location: Austin, TX
  • OS: Windows 8
  • Phone: Lumia 920 (Yellow)

Posted 05 June 2012 - 16:48

I have some other good programmer jokes.

What does a programmer use for birth control?
His personality.

Why did the programmer cross the road?
Because that's what he did last year.

What's the definition of an outgoing programmer?
He stares at your feet when he talks to you instead of his own.

#12 threetonesun

threetonesun

    Neowinian Senior

  • 11,943 posts
  • Joined: 26-February 02

Posted 05 June 2012 - 16:52

function grocery_trip($eggs){

$milk = 1;



if($eggs){

$milk = 6;

}



return $milk;

}



#13 simplezz

simplezz

    Neowinian Senior

  • 2,611 posts
  • Joined: 01-February 12

Posted 05 June 2012 - 17:18

function grocery_trip($eggs){
$milk = 1;

if($eggs){
$milk = 6;
}

return $milk;
}


:D I like the ternary operator version as well:

int
get_milk()
{
	return ( shop_has_eggs() ) ? 6 : 1;
}


#14 threetonesun

threetonesun

    Neowinian Senior

  • 11,943 posts
  • Joined: 26-February 02

Posted 05 June 2012 - 17:31

Ah, I was gonna use the ternary, but I figured for anyone who didn't get the joke wouldn't get that either. :laugh:

#15 McKay

McKay

    Neowinian Stallion

  • 5,907 posts
  • Joined: 29-August 10
  • Location: 308 Negra Arroyo Lane
  • OS: Windows 8.1
  • Phone: LG G3

Posted 05 June 2012 - 20:13

Hahaha! If it wasn't so damn expensive to do that and it would require me to get my lazy ass back to the store, I'd do that!



Click here to login or here to register to remove this ad, it's free!