
please wait
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." |
* 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. |
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; } |