Funny

Feb 24, 2009 at 11:47pm
Here is a link to many humerus examples of how logic can sometimes escape us when programing, enjoy.

http://www.rinkworks.com/stupid/cs_programming.shtml
Last edited on Feb 25, 2009 at 12:39am
Feb 25, 2009 at 8:32am

I was helping a friend with some code. In the code, I found the line:

x = x;

and removed it. I made some further changes and send the code back to him. He told me he still had errors. So he sent me his code again, and again I found the same line. I asked him why he kept putting that in there, and he replied, "So x doesn't lose its value."


Hahaha :D
Feb 25, 2009 at 11:48pm
* Him: "I can download games like Quake and play them during lunch, you know."
* Me: "We're only allowed 10 megs in our accounts, and the system administrators would notice you downloading a large file."
* Him: "Nah, I could hack it so he couldn't."
* Me: "Ah, so you are into hacking. By the way do you know any programming languages?"
* Him: "Yeah, of course."
* Me: "Which ones?"
* Him: "I can't tell you or else you'll use them."
* Me: "Just by mentioning C++ or Pascal or whatever will not instantly make me a genius with those languages."
* Him: "Oh sorry, I didn't understand you. Yeah, I know C++ and Pascal."
* Me: "What compiler do you use?"
* Him: "Well, Qbasic is my favorite."
* Me: "Nobody over the age of eight uses QBasic for serious purposes."
* Him: "But they made windows with QBasic."

I almost cried laughing.


Hahaha thats a good one.
Feb 26, 2009 at 1:03am
I like this one

I found this buried in our code somewhere:

if (a)
{
/* do something */
return x;
}

else if (!a)
{
/* do something else */
return y;
}

else
{
/* do something entirely different */
return z;
}

Topic archived. No new replies allowed.