The Best Cyprus Community

Skip to content


Programmer Thinking

We all need a good laugh.

Programmer Thinking

Postby IcyNoAngel » Fri Aug 24, 2007 11:48 am

The wife of a programmer tells him to go to the supermarket and get 10 eggs, if they have salami, take 2.
The programmer comes back home with 2 eggs. :lol: :lol: :lol:

Here's how he is thinking (if I have errors in my code, please send them by e-mail :lol: :lol: :lol: - for used functions refer to documentation of Going To The Super Market Programming :lol: :lol: :lol: )

include("superMarketFunctions.php");

function goToByEggs($eggs, $what) {
if(exists($what) {
$eggs = 2;
}
$result = buy($eggs);
if($result == 1) {
goBackHome();
} else {
runbackUpPlan();
goBackHome();
}
return 1;
}
goToByEggs(10, "Salami");
IcyNoAngel
Contributor
Contributor
 
Posts: 674
Joined: Mon Jan 15, 2007 2:55 pm

Postby twinkle » Fri Aug 24, 2007 12:06 pm

I don't understand....Do you have to speak "Geek" ???:D
User avatar
twinkle
Regular Contributor
Regular Contributor
 
Posts: 1310
Joined: Wed Jan 11, 2006 1:09 pm
Location: Larnaca

Postby IcyNoAngel » Fri Aug 24, 2007 12:19 pm

Definitely :D and Chinese too :lol: :lol: :lol:
IcyNoAngel
Contributor
Contributor
 
Posts: 674
Joined: Mon Jan 15, 2007 2:55 pm

Postby webbo » Mon Aug 27, 2007 11:31 pm

how about gobbledygook?

Bubbles x
User avatar
webbo
Main Contributor
Main Contributor
 
Posts: 4698
Joined: Mon Sep 25, 2006 4:08 pm

Postby Tracy369 » Sat Oct 06, 2007 12:16 pm

It's simple.
If Supermarket does not sell salami get 10 eggs.
If Supermarket sells salami get 2 eggs.
Test for salami is positive therefore acquire pair of eggs.
Tracy369
New Member
New Member
 
Posts: 9
Joined: Sun Sep 30, 2007 9:56 pm

Re: Programmer Thinking

Postby Eric dayi » Sat Oct 06, 2007 12:36 pm

IcyNoAngel wrote:The wife of a programmer tells him to go to the supermarket and get 10 eggs, if they have salami, take 2.
The programmer comes back home with 2 eggs. :lol: :lol: :lol:

Here's how he is thinking (if I have errors in my code, please send them by e-mail :lol: :lol: :lol: - for used functions refer to documentation of Going To The Super Market Programming :lol: :lol: :lol: )

include("superMarketFunctions.php");

function goToByEggs($eggs, $what) {
if(exists($what) {
$eggs = 2;
}
$result = buy($eggs);
if($result == 1) {
goBackHome();
} else {
runbackUpPlan();
goBackHome();
}
return 1;
}
goToByEggs(10, "Salami");


It's the wives fault, don't blame the guy. :lol:
User avatar
Eric dayi
Regular Contributor
Regular Contributor
 
Posts: 2024
Joined: Fri Oct 14, 2005 9:37 pm


Return to Jokes and Enigmas

Who is online

Users browsing this forum: No registered users and 1 guest